Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.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.BooleanSignals.UpSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|and1.y|sample.y|upSample1.y|upSample2.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample") translateModel(Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|and1.y|sample.y|upSample1.y|upSample2.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007491/0.0007491, allocations: 103 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.0007739/0.000774, allocations: 181.8 kB / 16.96 MB, free: 6.875 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.199/1.199, allocations: 205.4 MB / 223.2 MB, free: 5.508 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.06246/0.06246, allocations: 12.6 MB / 284 MB, free: 8.574 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.000619/0.000619, allocations: 20 kB / 345.2 MB, free: 20.9 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08127/0.0819, allocations: 50.39 MB / 395.5 MB, free: 2.422 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample): time 0.002465/0.0844, allocations: 1.681 MB / 397.2 MB, free: 0.7266 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001633/0.08607, allocations: 0.9833 MB / 398.2 MB, free: 15.73 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001406/0.08624, allocations: 7.938 kB / 398.2 MB, free: 15.73 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005461/0.0868, allocations: 143.6 kB / 398.4 MB, free: 15.59 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002335/0.08704, allocations: 103.6 kB / 398.5 MB, free: 15.48 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005408/0.08759, allocations: 199.7 kB / 398.7 MB, free: 15.29 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002278/0.08783, allocations: 219.4 kB / 398.9 MB, free: 15.07 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001266/0.08796, allocations: 44.55 kB / 398.9 MB, free: 15.03 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.671e-05/0.08807, allocations: 71.64 kB / 399 MB, free: 14.96 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001125/0.08819, allocations: 95.47 kB / 399.1 MB, free: 14.87 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.205e-05/0.08822, allocations: 12 kB / 399.1 MB, free: 14.86 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001102/0.08834, allocations: 39.98 kB / 399.1 MB, free: 14.82 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.912e-05/0.08841, allocations: 47.83 kB / 399.2 MB, free: 14.77 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.465e-05/0.0885, allocations: 105.1 kB / 399.3 MB, free: 14.66 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002317/0.08874, allocations: 227.1 kB / 399.5 MB, free: 14.44 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.256e-06/0.08876, allocations: 4 kB / 399.5 MB, free: 14.43 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.08876, allocations: 0 / 399.5 MB, free: 14.43 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.657e-06/0.08877, allocations: 0 / 399.5 MB, free: 14.43 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.0006295/0.08941, allocations: 0.5196 MB / 400 MB, free: 13.86 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.044e-05/0.08944, allocations: 8.031 kB / 400 MB, free: 13.85 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.555e-05/0.0895, allocations: 24.66 kB / 400.1 MB, free: 13.83 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002828/0.08979, allocations: 274.8 kB / 400.3 MB, free: 13.52 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.256e-05/0.08982, allocations: 16.36 kB / 400.3 MB, free: 13.5 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.17e-05/0.08985, allocations: 16.12 kB / 400.4 MB, free: 13.48 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004542/0.09031, allocations: 298.1 kB / 400.6 MB, free: 13.17 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.675e-06/0.09033, allocations: 0 / 400.6 MB, free: 13.17 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.623e-05/0.09035, allocations: 8 kB / 400.7 MB, free: 13.16 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.388e-06/0.09036, allocations: 4 kB / 400.7 MB, free: 13.16 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000128/0.0905, allocations: 59.91 kB / 400.7 MB, free: 13.1 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004202/0.09092, allocations: 386.3 kB / 401.1 MB, free: 12.66 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002776/0.09121, allocations: 184 kB / 401.3 MB, free: 12.46 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001252/0.09135, allocations: 82.53 kB / 401.4 MB, free: 12.37 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.374e-05/0.09138, allocations: 4 kB / 401.4 MB, free: 12.36 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001299/0.09152, allocations: 79.33 kB / 401.4 MB, free: 12.27 MB / 302.1 MB Notification: Performance of pre-optimization done (n=22): time 1.703e-06/0.09153, allocations: 3.938 kB / 401.4 MB, free: 12.27 MB / 302.1 MB Notification: Performance of matching and sorting (n=22): time 0.0004224/0.09196, allocations: 221.3 kB / 401.7 MB, free: 12.05 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.573e-05/0.09204, allocations: 152.4 kB / 401.8 MB, free: 11.87 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002365/0.09229, allocations: 272.9 kB / 402.1 MB, free: 11.59 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.942e-05/0.09231, allocations: 33.7 kB / 402.1 MB, free: 11.55 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.787e-05/0.09239, allocations: 116.7 kB / 402.2 MB, free: 11.44 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.837e-05/0.09242, allocations: 31.64 kB / 402.2 MB, free: 11.41 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.448e-05/0.09246, allocations: 29.7 kB / 402.3 MB, free: 11.37 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.716e-05/0.09257, allocations: 338.8 kB / 402.6 MB, free: 11.03 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.452e-05/0.09265, allocations: 36.45 kB / 402.6 MB, free: 11 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001432/0.0928, allocations: 174 kB / 402.8 MB, free: 10.77 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002075/0.09301, allocations: 203.5 kB / 403 MB, free: 10.51 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.026e-06/0.09303, allocations: 4 kB / 403 MB, free: 10.51 MB / 302.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003083/0.09334, allocations: 221 kB / 403.2 MB, free: 10.29 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.954e-05/0.09337, allocations: 4.531 kB / 403.2 MB, free: 10.28 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.512e-06/0.09338, allocations: 8 kB / 403.2 MB, free: 10.27 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.156e-05/0.09341, allocations: 8 kB / 403.3 MB, free: 10.27 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.69e-05/0.0935, allocations: 27.92 kB / 403.3 MB, free: 10.24 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.979e-06/0.09352, allocations: 7.984 kB / 403.3 MB, free: 10.23 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.991e-05/0.09362, allocations: 23.78 kB / 403.3 MB, free: 10.21 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.384e-05/0.09365, allocations: 12 kB / 403.3 MB, free: 10.2 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.table1.combiTimeTable.nextTimeEvent,$whenCondition1,table1.combiTimeTable.nextTimeEventScaled,$PRE.table1.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEvent,table1.y,and1.y,and1.u2,and1.u1,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.000124/0.09377, allocations: 160.3 kB / 403.5 MB, free: 10.03 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001556/0.09394, allocations: 133.2 kB / 403.6 MB, free: 9.891 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.476e-05/0.094, allocations: 29.7 kB / 403.6 MB, free: 9.859 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.887e-06/0.09401, allocations: 4 kB / 403.6 MB, free: 9.855 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.947e-06/0.09402, allocations: 0 / 403.6 MB, free: 9.855 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.941e-06/0.09403, allocations: 3.938 kB / 403.6 MB, free: 9.852 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001983/0.09423, allocations: 249.5 kB / 403.9 MB, free: 9.559 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.452e-06/0.09424, allocations: 0 / 403.9 MB, free: 9.559 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.287e-05/0.09428, allocations: 8.453 kB / 403.9 MB, free: 9.551 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.587e-06/0.09429, allocations: 4 kB / 403.9 MB, free: 9.547 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.319e-05/0.09431, allocations: 4 kB / 403.9 MB, free: 9.543 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.846e-06/0.09432, allocations: 4 kB / 403.9 MB, free: 9.539 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.09432, allocations: 4 kB / 403.9 MB, free: 9.535 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002979/0.09463, allocations: 226.3 kB / 404.1 MB, free: 9.289 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.106e-05/0.09473, allocations: 124.7 kB / 404.3 MB, free: 9.148 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.268e-05/0.09477, allocations: 11.94 kB / 404.3 MB, free: 9.137 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.621e-05/0.09484, allocations: 8 kB / 404.3 MB, free: 9.129 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.266e-05/0.09489, allocations: 12.05 kB / 404.3 MB, free: 9.117 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.82e-05/0.09492, allocations: 12 kB / 404.3 MB, free: 9.105 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001577/0.09508, allocations: 196.5 kB / 404.5 MB, free: 8.918 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.09509, allocations: 0 / 404.5 MB, free: 8.918 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002839/0.09537, allocations: 47.94 kB / 404.5 MB, free: 8.871 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,table1.y,table1.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEventScaled,upSample1.y,upSample1.b_super,upSample1.u_super,upSample2.y,upSample2.b_super,upSample2.u_super,and1.u1,and1.u2,and1.y,sample.y,upSample1.u,upSample1.dummy,upSample1.b,upSample2.u,upSample2.dummy,upSample2.b) * Number of discrete states: 2 (table1.combiTimeTable.nextTimeEventScaled,table1.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.0007972/0.09618, allocations: 427.4 kB / 405 MB, free: 8.445 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002503/0.09644, allocations: 143.8 kB / 405.1 MB, free: 8.305 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.09645, allocations: 0 / 405.1 MB, free: 8.305 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 6.127e-05/0.09652, allocations: 31.92 kB / 405.1 MB, free: 8.273 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004379/0.09696, allocations: 110.3 kB / 405.2 MB, free: 8.164 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005728/0.09755, allocations: 456.5 kB / 405.7 MB, free: 7.684 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002436/0.0978, allocations: 0.7521 MB / 406.4 MB, free: 6.906 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 6.573e-05/0.09787, allocations: 30.17 kB / 406.5 MB, free: 6.879 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.208e-05/0.09792, allocations: 23.42 kB / 406.5 MB, free: 6.859 MB / 302.1 MB Notification: Performance of SimCode: time 2.2e-07/0.09793, allocations: 0 / 406.5 MB, free: 6.859 MB / 302.1 MB Notification: Performance of Templates: time 0.005344/0.1033, allocations: 2.827 MB / 409.3 MB, free: 4.031 MB / 302.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample.makefile Environment - environmentSimulation: (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample.pipe 2>&1) Environment - environmentSimulation: diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches