Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|subSample.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample") translateModel(Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|subSample.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001561/0.001561, allocations: 175.4 kB / 16.77 MB, free: 4.922 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.533/1.533, allocations: 205.4 MB / 222.9 MB, free: 9.004 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007822/0.0007822, allocations: 92.33 kB / 271.3 MB, free: 8.234 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.09793/0.09793, allocations: 12.59 MB / 332.1 MB, free: 11.24 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004554/0.0004554, allocations: 15.98 kB / 392.6 MB, free: 66.55 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1116/0.112, allocations: 50.37 MB / 443 MB, free: 16.12 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample): time 0.002166/0.1143, allocations: 1.556 MB / 444.5 MB, free: 14.55 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001288/0.1156, allocations: 0.8941 MB / 445.4 MB, free: 13.65 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000121/0.1157, allocations: 4 kB / 445.4 MB, free: 13.64 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005889/0.1163, allocations: 135.6 kB / 445.5 MB, free: 13.51 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002414/0.1166, allocations: 99.67 kB / 445.6 MB, free: 13.41 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004589/0.1171, allocations: 155.6 kB / 445.8 MB, free: 13.26 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001874/0.1172, allocations: 163.5 kB / 446 MB, free: 13.1 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001227/0.1174, allocations: 29.55 kB / 446 MB, free: 13.07 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.516e-05/0.1175, allocations: 63.69 kB / 446 MB, free: 13.01 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001007/0.1176, allocations: 63.7 kB / 446.1 MB, free: 12.95 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.084e-05/0.1176, allocations: 4 kB / 446.1 MB, free: 12.95 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001344/0.1178, allocations: 35.97 kB / 446.1 MB, free: 12.91 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.069e-05/0.1178, allocations: 39.84 kB / 446.2 MB, free: 12.87 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.336e-05/0.1179, allocations: 77.31 kB / 446.3 MB, free: 12.79 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001773/0.1181, allocations: 156 kB / 446.4 MB, free: 12.64 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.111e-06/0.1181, allocations: 0 / 446.4 MB, free: 12.64 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.653e-06/0.1181, allocations: 0 / 446.4 MB, free: 12.64 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.338e-06/0.1181, allocations: 0 / 446.4 MB, free: 12.64 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0006782/0.1188, allocations: 492.2 kB / 446.9 MB, free: 12.1 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.955e-05/0.1189, allocations: 8.031 kB / 446.9 MB, free: 12.09 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.06e-05/0.1189, allocations: 16.75 kB / 446.9 MB, free: 12.08 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002975/0.1192, allocations: 266.8 kB / 447.2 MB, free: 11.77 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.104e-05/0.1193, allocations: 12.38 kB / 447.2 MB, free: 11.76 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.21e-05/0.1193, allocations: 8.125 kB / 447.2 MB, free: 11.75 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003101/0.1196, allocations: 142.7 kB / 447.3 MB, free: 11.59 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.005e-05/0.1196, allocations: 0 / 447.3 MB, free: 11.59 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.51e-05/0.1196, allocations: 4 kB / 447.3 MB, free: 11.59 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.721e-06/0.1197, allocations: 4 kB / 447.3 MB, free: 11.58 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.191e-05/0.1197, allocations: 31.98 kB / 447.4 MB, free: 11.55 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00047/0.1202, allocations: 362.3 kB / 447.7 MB, free: 11.14 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001882/0.1204, allocations: 115.8 kB / 447.8 MB, free: 11 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.281e-05/0.1205, allocations: 46.56 kB / 447.9 MB, free: 10.95 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.102e-05/0.1205, allocations: 80 / 447.9 MB, free: 10.95 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001536/0.1207, allocations: 83.31 kB / 448 MB, free: 10.85 MB / 298.7 MB Notification: Performance of pre-optimization done (n=9): time 1.533e-06/0.1207, allocations: 0 / 448 MB, free: 10.85 MB / 298.7 MB Notification: Performance of matching and sorting (n=9): time 0.0003204/0.121, allocations: 141.3 kB / 448.1 MB, free: 10.71 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.564e-05/0.1211, allocations: 132.5 kB / 448.2 MB, free: 10.55 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002284/0.1214, allocations: 265.2 kB / 448.5 MB, free: 10.28 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.467e-05/0.1214, allocations: 25.7 kB / 448.5 MB, free: 10.25 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.703e-05/0.1214, allocations: 124.1 kB / 448.6 MB, free: 10.12 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.066e-05/0.1215, allocations: 19.73 kB / 448.7 MB, free: 10.1 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.881e-06/0.1215, allocations: 4 kB / 448.7 MB, free: 10.1 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.274e-05/0.1216, allocations: 330.8 kB / 449 MB, free: 9.766 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.121e-05/0.1216, allocations: 19.98 kB / 449 MB, free: 9.746 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.728e-05/0.1217, allocations: 70 kB / 449.1 MB, free: 9.656 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001193/0.1218, allocations: 80.22 kB / 449.2 MB, free: 9.562 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.854e-06/0.1218, allocations: 0 / 449.2 MB, free: 9.562 MB / 298.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001642/0.122, allocations: 117.4 kB / 449.3 MB, free: 9.441 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.801e-05/0.122, allocations: 4.625 kB / 449.3 MB, free: 9.438 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.042e-06/0.122, allocations: 4 kB / 449.3 MB, free: 9.434 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.58e-05/0.1221, allocations: 0 / 449.3 MB, free: 9.434 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.841e-05/0.1221, allocations: 15.98 kB / 449.3 MB, free: 9.418 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.832e-06/0.1222, allocations: 0 / 449.3 MB, free: 9.418 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.377e-05/0.1222, allocations: 15.84 kB / 449.3 MB, free: 9.402 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.217e-06/0.1222, allocations: 4 kB / 449.3 MB, free: 9.398 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,sample.u,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,subSample.y,subSample.u,sample.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001137/0.1224, allocations: 150.5 kB / 449.5 MB, free: 9.242 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.875e-05/0.1224, allocations: 61.5 kB / 449.5 MB, free: 9.176 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.679e-05/0.1225, allocations: 25.66 kB / 449.5 MB, free: 9.152 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.535e-06/0.1225, allocations: 0 / 449.5 MB, free: 9.152 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.935e-06/0.1225, allocations: 7.984 kB / 449.6 MB, free: 9.145 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.29e-06/0.1225, allocations: 7.875 kB / 449.6 MB, free: 9.137 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001543/0.1227, allocations: 221.5 kB / 449.8 MB, free: 8.871 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.1227, allocations: 0 / 449.8 MB, free: 8.871 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.266e-05/0.1227, allocations: 12 kB / 449.8 MB, free: 8.859 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.055e-06/0.1227, allocations: 4 kB / 449.8 MB, free: 8.855 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.223e-05/0.1227, allocations: 320 / 449.8 MB, free: 8.855 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.965e-06/0.1228, allocations: 4 kB / 449.8 MB, free: 8.852 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.574e-06/0.1228, allocations: 7.984 kB / 449.8 MB, free: 8.844 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002125/0.123, allocations: 154.4 kB / 450 MB, free: 8.668 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.287e-05/0.1231, allocations: 108.9 kB / 450.1 MB, free: 8.543 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.142e-05/0.1231, allocations: 8 kB / 450.1 MB, free: 8.535 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.827e-05/0.1232, allocations: 4 kB / 450.1 MB, free: 8.531 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.849e-05/0.1232, allocations: 7.984 kB / 450.1 MB, free: 8.523 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.587e-05/0.1232, allocations: 7.938 kB / 450.1 MB, free: 8.516 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001574/0.1234, allocations: 192.5 kB / 450.3 MB, free: 8.328 MB / 298.7 MB Notification: Performance of sort global known variables: time 1e-07/0.1234, allocations: 0 / 450.3 MB, free: 8.328 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002339/0.1237, allocations: 28 kB / 450.3 MB, free: 8.301 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,sample.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,subSample.y,sample.y,subSample.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008587/0.1245, allocations: 433.9 kB / 450.7 MB, free: 7.871 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001831/0.1247, allocations: 59.92 kB / 450.8 MB, free: 7.812 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.1247, allocations: 0 / 450.8 MB, free: 7.812 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 6.427e-05/0.1248, allocations: 27.98 kB / 450.8 MB, free: 7.785 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003808/0.1252, allocations: 60.34 kB / 450.9 MB, free: 7.727 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000487/0.1257, allocations: 362.1 kB / 451.2 MB, free: 7.336 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002746/0.126, allocations: 0.7283 MB / 452 MB, free: 6.582 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.274e-05/0.126, allocations: 15.44 kB / 452 MB, free: 6.566 MB / 298.7 MB Notification: Performance of SimCode: time 6.21e-07/0.126, allocations: 0 / 452 MB, free: 6.566 MB / 298.7 MB Notification: Performance of Templates: time 0.004376/0.1304, allocations: 2.57 MB / 454.5 MB, free: 3.992 MB / 298.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches