Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_Synchronous.Examples.Elementary.IntegerSignals.UpSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|sum.y|upSample1.y|upSample2.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample") translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|sum.y|upSample1.y|upSample2.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008585/0.0008584, allocations: 102.4 kB / 16.07 MB, free: 32 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009864/0.0009865, allocations: 182.8 kB / 16.96 MB, free: 6.668 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.2/1.2, allocations: 205.4 MB / 223.1 MB, free: 5.57 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.0626/0.0626, allocations: 12.59 MB / 284 MB, free: 8.594 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica_Synchronous requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0006581/0.0006581, allocations: 16 kB / 345.2 MB, free: 20.91 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08787/0.08854, allocations: 50.4 MB / 395.5 MB, free: 2.434 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample): time 0.002522/0.09111, allocations: 1.657 MB / 397.2 MB, free: 0.7617 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001682/0.09282, allocations: 1.081 MB / 398.3 MB, free: 15.67 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001431/0.09298, allocations: 3.938 kB / 398.3 MB, free: 15.67 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002998/0.0933, allocations: 63.78 kB / 398.4 MB, free: 15.61 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002479/0.09355, allocations: 83.67 kB / 398.4 MB, free: 15.52 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007617/0.09433, allocations: 247.5 kB / 398.7 MB, free: 15.28 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002484/0.09459, allocations: 203.4 kB / 398.9 MB, free: 15.08 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001166/0.09471, allocations: 41.66 kB / 398.9 MB, free: 15.04 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001262/0.09485, allocations: 79.62 kB / 399 MB, free: 14.96 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001375/0.09499, allocations: 103.5 kB / 399.1 MB, free: 14.86 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.381e-05/0.09502, allocations: 4 kB / 399.1 MB, free: 14.86 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001265/0.09516, allocations: 43.98 kB / 399.1 MB, free: 14.81 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.616e-05/0.09524, allocations: 63.75 kB / 399.2 MB, free: 14.75 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001087/0.09536, allocations: 117 kB / 399.3 MB, free: 14.62 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002931/0.09566, allocations: 267.3 kB / 399.6 MB, free: 14.36 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.106e-06/0.09567, allocations: 0 / 399.6 MB, free: 14.36 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.09568, allocations: 0 / 399.6 MB, free: 14.36 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.879e-06/0.09569, allocations: 0 / 399.6 MB, free: 14.36 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.000718/0.09641, allocations: 0.539 MB / 400.1 MB, free: 13.77 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.321e-05/0.09645, allocations: 8.031 kB / 400.1 MB, free: 13.76 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.331e-05/0.09652, allocations: 36.55 kB / 400.2 MB, free: 13.73 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000329/0.09686, allocations: 303.4 kB / 400.5 MB, free: 13.39 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.412e-05/0.09689, allocations: 16.34 kB / 400.5 MB, free: 13.38 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.416e-05/0.09692, allocations: 16.12 kB / 400.5 MB, free: 13.36 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005191/0.09745, allocations: 319.1 kB / 400.8 MB, free: 13.02 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.889e-06/0.09747, allocations: 0 / 400.8 MB, free: 13.02 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.669e-05/0.0975, allocations: 7.938 kB / 400.8 MB, free: 13.01 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.592e-06/0.09751, allocations: 4 kB / 400.8 MB, free: 13.01 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001545/0.09767, allocations: 67.97 kB / 400.9 MB, free: 12.94 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005174/0.0982, allocations: 422.2 kB / 401.3 MB, free: 12.47 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003433/0.09855, allocations: 192 kB / 401.5 MB, free: 12.26 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001551/0.09872, allocations: 98.52 kB / 401.6 MB, free: 12.15 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.739e-05/0.09876, allocations: 4 kB / 401.6 MB, free: 12.15 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000147/0.09891, allocations: 91.25 kB / 401.7 MB, free: 12.05 MB / 302.1 MB Notification: Performance of pre-optimization done (n=22): time 1.533e-06/0.09892, allocations: 0 / 401.7 MB, free: 12.05 MB / 302.1 MB Notification: Performance of matching and sorting (n=22): time 0.0004939/0.09942, allocations: 253.4 kB / 401.9 MB, free: 11.79 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001043/0.09953, allocations: 166.1 kB / 402.1 MB, free: 11.59 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003358/0.09988, allocations: 343 kB / 402.4 MB, free: 11.25 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.314e-05/0.09991, allocations: 29.7 kB / 402.4 MB, free: 11.21 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.917e-05/0.1, allocations: 136.6 kB / 402.6 MB, free: 11.07 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.77e-05/0.1001, allocations: 35.7 kB / 402.6 MB, free: 11.04 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.58e-05/0.1001, allocations: 29.7 kB / 402.6 MB, free: 11 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001242/0.1002, allocations: 342.8 kB / 403 MB, free: 10.66 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.412e-05/0.1003, allocations: 40.44 kB / 403 MB, free: 10.62 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001676/0.1005, allocations: 190.9 kB / 403.2 MB, free: 10.37 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002532/0.1008, allocations: 211.2 kB / 403.4 MB, free: 10.11 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.1008, allocations: 0 / 403.4 MB, free: 10.11 MB / 302.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003481/0.1011, allocations: 233 kB / 403.6 MB, free: 9.875 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.675e-05/0.1012, allocations: 9.625 kB / 403.6 MB, free: 9.867 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.823e-06/0.1012, allocations: 4.531 kB / 403.6 MB, free: 9.863 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.727e-05/0.1012, allocations: 8 kB / 403.7 MB, free: 9.855 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001369/0.1013, allocations: 39.91 kB / 403.7 MB, free: 9.816 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.059e-05/0.1014, allocations: 19.81 kB / 403.7 MB, free: 9.797 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001178/0.1015, allocations: 19.84 kB / 403.7 MB, free: 9.777 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.954e-05/0.1015, allocations: 16 kB / 403.7 MB, free: 9.762 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 26 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,sum.y,sum.u[2],sum.u[1],upSample2.u_super,$CLKPRE.upSample2.b_super,upSample2.b_super,upSample2.y,upSample1.u_super,$CLKPRE.upSample1.b_super,upSample1.b_super,upSample1.y,$CLKPRE.upSample2.b,upSample2.b,upSample2.dummy,upSample2.u,$CLKPRE.upSample1.b,upSample1.b,upSample1.dummy,upSample1.u,sample.y) * Number of discrete states: 0 () * Number of clocked states: 4 (upSample2.b_super,upSample1.b_super,upSample2.b,upSample1.b) * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 28 * 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 0.0001518/0.1017, allocations: 175.9 kB / 403.9 MB, free: 9.582 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001787/0.1019, allocations: 141.6 kB / 404.1 MB, free: 9.438 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.845e-05/0.1019, allocations: 33.73 kB / 404.1 MB, free: 9.402 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.737e-06/0.102, allocations: 4 kB / 404.1 MB, free: 9.398 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.34e-06/0.102, allocations: 3.938 kB / 404.1 MB, free: 9.395 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.502e-06/0.102, allocations: 7.984 kB / 404.1 MB, free: 9.387 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002018/0.1022, allocations: 257.5 kB / 404.4 MB, free: 9.086 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/0.1022, allocations: 320 / 404.4 MB, free: 9.086 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001189/0.1023, allocations: 35.91 kB / 404.4 MB, free: 9.051 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.17e-06/0.1023, allocations: 4 kB / 404.4 MB, free: 9.047 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.516e-05/0.1024, allocations: 11.94 kB / 404.4 MB, free: 9.035 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.904e-06/0.1024, allocations: 0 / 404.4 MB, free: 9.035 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.366e-06/0.1024, allocations: 3.938 kB / 404.4 MB, free: 9.031 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003426/0.1027, allocations: 246.3 kB / 404.7 MB, free: 8.766 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001059/0.1028, allocations: 128.7 kB / 404.8 MB, free: 8.621 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.499e-05/0.1029, allocations: 11.94 kB / 404.8 MB, free: 8.609 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.234e-05/0.103, allocations: 8 kB / 404.8 MB, free: 8.602 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.197e-05/0.103, allocations: 11.92 kB / 404.8 MB, free: 8.59 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.895e-05/0.103, allocations: 8 kB / 404.8 MB, free: 8.582 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002276/0.1033, allocations: 253.9 kB / 405.1 MB, free: 8.332 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1033, allocations: 0 / 405.1 MB, free: 8.332 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002945/0.1036, allocations: 48 kB / 405.1 MB, free: 8.285 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 20 ($whenCondition1,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,upSample1.y,upSample1.b_super,upSample1.u_super,upSample2.y,upSample2.b_super,upSample2.u_super,sum.u[1],sum.u[2],sum.y,sample.y,upSample1.u,upSample1.dummy,upSample1.b,upSample2.u,upSample2.dummy,upSample2.b) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent) * Number of clocked states: 4 (upSample1.b_super,upSample2.b_super,upSample1.b,upSample2.b) * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0008796/0.1045, allocations: 435.6 kB / 405.5 MB, free: 7.852 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003267/0.1048, allocations: 155.8 kB / 405.7 MB, free: 7.699 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.1048, allocations: 0 / 405.7 MB, free: 7.699 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 7.51e-05/0.1049, allocations: 27.98 kB / 405.7 MB, free: 7.672 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005039/0.1054, allocations: 121.5 kB / 405.8 MB, free: 7.551 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007022/0.1061, allocations: 0.5177 MB / 406.4 MB, free: 7.008 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003105/0.1064, allocations: 0.7718 MB / 407.1 MB, free: 6.211 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001055/0.1066, allocations: 42.44 kB / 407.2 MB, free: 6.164 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.666e-05/0.1066, allocations: 23.44 kB / 407.2 MB, free: 6.141 MB / 302.1 MB Notification: Performance of SimCode: time 3.61e-07/0.1066, allocations: 0 / 407.2 MB, free: 6.141 MB / 302.1 MB Notification: Performance of Templates: time 0.006379/0.113, allocations: 3.298 MB / 410.5 MB, free: 2.84 MB / 302.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.makefile Environment - environmentSimulation: (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.pipe 2>&1) Environment - environmentSimulation: diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches