Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep") translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001301/0.001309, allocations: 113 kB / 17.68 MB, free: 5.473 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00118/0.00118, allocations: 190.9 kB / 18.62 MB, free: 4.543 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.422/1.422, allocations: 222.9 MB / 242.3 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0018/0.0018, allocations: 49.7 kB / 302.1 MB, free: 5.156 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1329/0.1347, allocations: 49.44 MB / 351.5 MB, free: 3.688 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep): time 0.003319/0.1381, allocations: 1.428 MB / 352.9 MB, free: 2.242 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002929/0.1385, allocations: 101.1 kB / 353 MB, free: 2.145 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.158e-05/0.1385, allocations: 0 / 353 MB, free: 2.145 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 3.232e-05/0.1386, allocations: 7.922 kB / 353 MB, free: 2.137 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 3.825e-05/0.1386, allocations: 0 / 353 MB, free: 2.137 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002604/0.1389, allocations: 27.92 kB / 353.1 MB, free: 2.109 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 8.984e-05/0.139, allocations: 23.92 kB / 353.1 MB, free: 2.086 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001209/0.1391, allocations: 19.97 kB / 353.1 MB, free: 2.066 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.726e-05/0.1392, allocations: 11.94 kB / 353.1 MB, free: 2.055 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.728e-05/0.1392, allocations: 11.92 kB / 353.1 MB, free: 2.043 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.881e-05/0.1392, allocations: 4 kB / 353.1 MB, free: 2.039 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.181e-05/0.1393, allocations: 4 kB / 353.1 MB, free: 2.035 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 1.929e-05/0.1393, allocations: 0 / 353.1 MB, free: 2.035 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 3.396e-05/0.1393, allocations: 15.88 kB / 353.1 MB, free: 2.02 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 8.618e-05/0.1394, allocations: 23.89 kB / 353.2 MB, free: 1.996 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.532e-06/0.1394, allocations: 0 / 353.2 MB, free: 1.996 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.1394, allocations: 0 / 353.2 MB, free: 1.996 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.4e-06/0.1394, allocations: 4 kB / 353.2 MB, free: 1.992 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0004445/0.1399, allocations: 347.4 kB / 353.5 MB, free: 1.602 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.074e-05/0.1399, allocations: 11.89 kB / 353.5 MB, free: 1.59 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.74e-05/0.14, allocations: 8.844 kB / 353.5 MB, free: 1.582 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002149/0.1402, allocations: 172.3 kB / 353.7 MB, free: 1.375 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.262e-05/0.1402, allocations: 4.375 kB / 353.7 MB, free: 1.371 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.308e-05/0.1402, allocations: 4.375 kB / 353.7 MB, free: 1.367 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000304/0.1405, allocations: 107.8 kB / 353.8 MB, free: 1.25 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.04e-05/0.1406, allocations: 192 / 353.8 MB, free: 1.25 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.164e-05/0.1406, allocations: 7.938 kB / 353.8 MB, free: 1.242 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.49e-06/0.1406, allocations: 0 / 353.8 MB, free: 1.242 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.912e-05/0.1407, allocations: 23.97 kB / 353.8 MB, free: 1.219 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000171/0.1409, allocations: 153.7 kB / 354 MB, free: 1.02 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001533/0.141, allocations: 58.48 kB / 354.1 MB, free: 0.9531 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.135e-05/0.1411, allocations: 24.92 kB / 354.1 MB, free: 0.9258 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.416e-05/0.1411, allocations: 7.922 kB / 354.1 MB, free: 0.918 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.059e-05/0.1412, allocations: 38.56 kB / 354.1 MB, free: 0.8711 MB / 286.1 MB Notification: Performance of pre-optimization done (n=4): time 1.112e-06/0.1412, allocations: 0 / 354.1 MB, free: 0.8711 MB / 286.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002448/0.1414, allocations: 73.61 kB / 354.2 MB, free: 0.793 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.759e-05/0.1415, allocations: 55.34 kB / 354.3 MB, free: 0.7266 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.573e-05/0.1416, allocations: 105.8 kB / 354.4 MB, free: 0.6133 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.566e-05/0.1416, allocations: 29.64 kB / 354.4 MB, free: 0.5781 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.528e-05/0.1416, allocations: 88.14 kB / 354.5 MB, free: 500 kB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.155e-06/0.1417, allocations: 0 / 354.5 MB, free: 500 kB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.987e-05/0.1417, allocations: 17.72 kB / 354.5 MB, free: 476 kB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001188/0.1418, allocations: 314.8 kB / 354.8 MB, free: 152 kB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.413e-05/0.1418, allocations: 8 kB / 354.8 MB, free: 144 kB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.676e-05/0.1419, allocations: 27.44 kB / 354.8 MB, free: 104 kB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.521e-05/0.1419, allocations: 35.36 kB / 354.9 MB, free: 56 kB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.524e-06/0.1419, allocations: 4 kB / 354.9 MB, free: 52 kB / 286.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 8.995e-05/0.142, allocations: 53.55 kB / 354.9 MB, free: 15.99 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.73e-05/0.1421, allocations: 8 kB / 354.9 MB, free: 15.98 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.542e-06/0.1421, allocations: 3.938 kB / 354.9 MB, free: 15.98 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.63e-05/0.1421, allocations: 3.984 kB / 354.9 MB, free: 15.98 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.008e-05/0.1422, allocations: 11.94 kB / 354.9 MB, free: 15.96 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.203e-06/0.1422, allocations: 0 / 354.9 MB, free: 15.96 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.042e-05/0.1422, allocations: 4 kB / 355 MB, free: 15.96 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.479e-06/0.1422, allocations: 8.125 kB / 355 MB, free: 15.95 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 3 (assignClock1.y,assignClock1.u,step.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.177e-05/0.1423, allocations: 117.8 kB / 355.1 MB, free: 15.83 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001036/0.1424, allocations: 53.67 kB / 355.1 MB, free: 15.77 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.626e-05/0.1425, allocations: 11.84 kB / 355.1 MB, free: 15.75 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.206e-06/0.1425, allocations: 4 kB / 355.1 MB, free: 15.75 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.968e-06/0.1425, allocations: 0 / 355.1 MB, free: 15.75 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.327e-06/0.1425, allocations: 0 / 355.1 MB, free: 15.75 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001075/0.1426, allocations: 153.7 kB / 355.3 MB, free: 15.55 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.32e-07/0.1426, allocations: 0 / 355.3 MB, free: 15.55 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.327e-05/0.1427, allocations: 19.92 kB / 355.3 MB, free: 15.53 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.593e-06/0.1427, allocations: 0 / 355.3 MB, free: 15.53 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.087e-06/0.1427, allocations: 3.938 kB / 355.3 MB, free: 15.52 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.173e-06/0.1427, allocations: 256 / 355.3 MB, free: 15.52 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.799e-06/0.1427, allocations: 4 kB / 355.3 MB, free: 15.52 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001333/0.1428, allocations: 88.95 kB / 355.4 MB, free: 15.41 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.444e-05/0.1429, allocations: 77.11 kB / 355.5 MB, free: 15.32 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.35e-05/0.1429, allocations: 11.94 kB / 355.5 MB, free: 15.31 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.226e-05/0.1429, allocations: 0 / 355.5 MB, free: 15.31 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.614e-06/0.1429, allocations: 0 / 355.5 MB, free: 15.31 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.993e-06/0.143, allocations: 4 kB / 355.5 MB, free: 15.3 MB / 302.1 MB Notification: Performance of sorting global known variables: time 4.409e-05/0.143, allocations: 87.27 kB / 355.6 MB, free: 15.22 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.143, allocations: 0 / 355.6 MB, free: 15.22 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0001839/0.1432, allocations: 4 kB / 355.6 MB, free: 15.21 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 (step.y,assignClock1.u,assignClock1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001157/0.1433, allocations: 99.19 kB / 355.7 MB, free: 15.11 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001302/0.1435, allocations: 31.92 kB / 355.7 MB, free: 15.08 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.1435, allocations: 0 / 355.7 MB, free: 15.08 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.91e-07/0.1435, allocations: 3.938 kB / 355.7 MB, free: 15.07 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002177/0.1437, allocations: 24.3 kB / 355.7 MB, free: 15.05 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002719/0.144, allocations: 117.5 kB / 355.9 MB, free: 14.91 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002637/0.1443, allocations: 0.6807 MB / 356.5 MB, free: 14.2 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 2.055e-05/0.1443, allocations: 8.156 kB / 356.5 MB, free: 14.19 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.587e-05/0.1443, allocations: 11.44 kB / 356.6 MB, free: 14.18 MB / 302.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1443, allocations: 0 / 356.6 MB, free: 14.18 MB / 302.1 MB Notification: Performance of Templates: time 0.002417/0.1467, allocations: 324.7 kB / 356.9 MB, free: 13.86 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/TimeBasedStep/TimeBasedStep.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches