Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.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.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|subSample.y",fileNamePrefix="Modelica_Synchronous_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_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001499/0.0015, allocations: 106.7 kB / 16.45 MB, free: 6.398 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.001443/0.001443, allocations: 186.4 kB / 17.38 MB, free: 5.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.85/1.85, allocations: 205.1 MB / 223.3 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.1073/0.1073, allocations: 12.6 MB / 283.2 MB, free: 15.39 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.001894/0.001895, allocations: 81.25 kB / 394.2 MB, free: 45.38 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1023/0.1042, allocations: 49.4 MB / 443.6 MB, free: 0.5 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample): time 0.003396/0.1076, allocations: 1.88 MB / 445.4 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001818/0.1094, allocations: 0.9713 MB / 446.4 MB, free: 13.62 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001564/0.1097, allocations: 0 / 446.4 MB, free: 13.62 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007403/0.1104, allocations: 147.5 kB / 446.6 MB, free: 13.48 MB / 334.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.0003514/0.1108, allocations: 111.5 kB / 446.7 MB, free: 13.37 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000572/0.1114, allocations: 179.6 kB / 446.8 MB, free: 13.2 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002876/0.1116, allocations: 179.5 kB / 447 MB, free: 13.02 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001352/0.1118, allocations: 37.52 kB / 447 MB, free: 12.98 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001175/0.1119, allocations: 75.69 kB / 447.1 MB, free: 12.91 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001283/0.1121, allocations: 83.56 kB / 447.2 MB, free: 12.83 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.876e-05/0.1121, allocations: 8 kB / 447.2 MB, free: 12.82 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001677/0.1123, allocations: 51.97 kB / 447.3 MB, free: 12.77 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.794e-05/0.1124, allocations: 39.91 kB / 447.3 MB, free: 12.73 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.565e-05/0.1125, allocations: 71.53 kB / 447.4 MB, free: 12.66 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000386/0.1129, allocations: 203.1 kB / 447.6 MB, free: 12.46 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.96e-06/0.1129, allocations: 0 / 447.6 MB, free: 12.46 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.185e-06/0.1129, allocations: 4 kB / 447.6 MB, free: 12.46 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.18e-05/0.1129, allocations: 0 / 447.6 MB, free: 12.46 MB / 334.1 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.0009906/0.1139, allocations: 0.5116 MB / 448.1 MB, free: 11.89 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.956e-05/0.114, allocations: 8.031 kB / 448.1 MB, free: 11.88 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.005e-05/0.114, allocations: 20.8 kB / 448.1 MB, free: 11.86 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004307/0.1145, allocations: 274.9 kB / 448.4 MB, free: 11.55 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.315e-05/0.1145, allocations: 12.31 kB / 448.4 MB, free: 11.54 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.679e-05/0.1145, allocations: 12.12 kB / 448.4 MB, free: 11.53 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004014/0.1149, allocations: 142.7 kB / 448.5 MB, free: 11.37 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.234e-05/0.115, allocations: 0 / 448.5 MB, free: 11.37 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.511e-05/0.115, allocations: 7.938 kB / 448.6 MB, free: 11.36 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.137e-05/0.115, allocations: 4 kB / 448.6 MB, free: 11.36 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001073/0.1151, allocations: 35.91 kB / 448.6 MB, free: 11.32 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000576/0.1157, allocations: 350.5 kB / 448.9 MB, free: 10.92 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002395/0.116, allocations: 111.8 kB / 449 MB, free: 10.79 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.331e-05/0.1161, allocations: 46.56 kB / 449.1 MB, free: 10.73 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.258e-05/0.1161, allocations: 4 kB / 449.1 MB, free: 10.73 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000175/0.1163, allocations: 67.39 kB / 449.2 MB, free: 10.65 MB / 334.1 MB Notification: Performance of pre-optimization done (n=9): time 1.393e-06/0.1163, allocations: 0 / 449.2 MB, free: 10.65 MB / 334.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003791/0.1167, allocations: 149.4 kB / 449.3 MB, free: 10.5 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.61e-05/0.1168, allocations: 136.5 kB / 449.4 MB, free: 10.33 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002954/0.1171, allocations: 260.9 kB / 449.7 MB, free: 10.07 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.987e-05/0.1171, allocations: 29.7 kB / 449.7 MB, free: 10.03 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.811e-05/0.1172, allocations: 124.1 kB / 449.8 MB, free: 9.906 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.548e-05/0.1172, allocations: 15.97 kB / 449.9 MB, free: 9.891 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.241e-05/0.1173, allocations: 33.95 kB / 449.9 MB, free: 9.852 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001522/0.1175, allocations: 330.8 kB / 450.2 MB, free: 9.52 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.324e-05/0.1175, allocations: 23.98 kB / 450.2 MB, free: 9.496 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.385e-05/0.1176, allocations: 62 kB / 450.3 MB, free: 9.414 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001466/0.1178, allocations: 84.19 kB / 450.4 MB, free: 9.316 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.889e-06/0.1178, allocations: 4 kB / 450.4 MB, free: 9.312 MB / 334.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002036/0.118, allocations: 109.8 kB / 450.5 MB, free: 9.199 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.025e-05/0.118, allocations: 4 kB / 450.5 MB, free: 9.195 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.684e-06/0.118, allocations: 4.188 kB / 450.5 MB, free: 9.191 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.743e-05/0.1181, allocations: 8 kB / 450.5 MB, free: 9.184 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.416e-05/0.1181, allocations: 19.88 kB / 450.5 MB, free: 9.164 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.116e-06/0.1182, allocations: 0 / 450.5 MB, free: 9.164 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.052e-05/0.1182, allocations: 15.88 kB / 450.5 MB, free: 9.148 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.384e-05/0.1183, allocations: 8 kB / 450.6 MB, free: 9.141 MB / 334.1 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 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,sample.u,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001506/0.1184, allocations: 141.8 kB / 450.7 MB, free: 8.992 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.249e-05/0.1185, allocations: 61.55 kB / 450.7 MB, free: 8.926 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.147e-05/0.1186, allocations: 25.77 kB / 450.8 MB, free: 8.898 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.375e-06/0.1186, allocations: 0 / 450.8 MB, free: 8.898 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.262e-06/0.1186, allocations: 0 / 450.8 MB, free: 8.898 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.993e-06/0.1186, allocations: 7.938 kB / 450.8 MB, free: 8.891 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000205/0.1188, allocations: 221.5 kB / 451 MB, free: 8.625 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.208e-05/0.1188, allocations: 7.969 kB / 451 MB, free: 8.617 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.47e-05/0.1189, allocations: 4 kB / 451 MB, free: 8.613 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.899e-06/0.1189, allocations: 4 kB / 451 MB, free: 8.609 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.43e-05/0.1189, allocations: 4 kB / 451 MB, free: 8.605 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.654e-06/0.1189, allocations: 3.938 kB / 451 MB, free: 8.602 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.855e-06/0.1189, allocations: 4 kB / 451 MB, free: 8.598 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002444/0.1192, allocations: 158.5 kB / 451.2 MB, free: 8.418 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001013/0.1193, allocations: 109 kB / 451.3 MB, free: 8.293 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.247e-05/0.1193, allocations: 4 kB / 451.3 MB, free: 8.289 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.107e-05/0.1194, allocations: 7.984 kB / 451.3 MB, free: 8.281 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.017e-05/0.1194, allocations: 8 kB / 451.3 MB, free: 8.273 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.81e-05/0.1195, allocations: 7.938 kB / 451.3 MB, free: 8.266 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002073/0.1197, allocations: 196.5 kB / 451.5 MB, free: 8.078 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1197, allocations: 0 / 451.5 MB, free: 8.078 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002554/0.1199, allocations: 27.94 kB / 451.5 MB, free: 8.051 MB / 334.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: 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 (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.00108/0.121, allocations: 420.5 kB / 451.9 MB, free: 7.629 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002336/0.1213, allocations: 76.03 kB / 452 MB, free: 7.555 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.1213, allocations: 0 / 452 MB, free: 7.555 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 6.466e-05/0.1214, allocations: 20 kB / 452 MB, free: 7.535 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003955/0.1218, allocations: 62.56 kB / 452.1 MB, free: 7.477 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005576/0.1223, allocations: 316.4 kB / 452.4 MB, free: 7.137 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000385/0.1227, allocations: 0.7322 MB / 453.1 MB, free: 6.379 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 6.903e-05/0.1228, allocations: 21.53 kB / 453.2 MB, free: 6.355 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.64e-05/0.1229, allocations: 27.42 kB / 453.2 MB, free: 6.328 MB / 334.1 MB Notification: Performance of SimCode: time 3.81e-07/0.1229, allocations: 0 / 453.2 MB, free: 6.328 MB / 334.1 MB Notification: Performance of Templates: time 0.006482/0.1293, allocations: 2.398 MB / 455.6 MB, free: 3.93 MB / 334.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches