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.001233/0.001233, allocations: 100.3 kB / 15.73 MB, free: 436 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.001417/0.001417, allocations: 178.8 kB / 16.62 MB, free: 6.562 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.56/1.56, allocations: 205.4 MB / 222.8 MB, free: 5.656 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.08299/0.08299, allocations: 12.6 MB / 283.7 MB, free: 8.703 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.0007296/0.0007299, allocations: 20 kB / 344.5 MB, free: 21.27 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1022/0.103, allocations: 50.38 MB / 394.9 MB, free: 2.797 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample): time 0.002486/0.1055, allocations: 1.546 MB / 396.4 MB, free: 1.238 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001604/0.1072, allocations: 0.8785 MB / 397.3 MB, free: 360 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001681/0.1073, allocations: 7.938 kB / 397.3 MB, free: 352 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006186/0.108, allocations: 127.6 kB / 397.5 MB, free: 224 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003072/0.1083, allocations: 91.73 kB / 397.5 MB, free: 132 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006029/0.1089, allocations: 151.7 kB / 397.7 MB, free: 15.98 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002479/0.1092, allocations: 115.8 kB / 397.8 MB, free: 15.86 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001274/0.1093, allocations: 29.47 kB / 397.8 MB, free: 15.84 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001457/0.1095, allocations: 59.77 kB / 397.9 MB, free: 15.78 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001126/0.1096, allocations: 59.69 kB / 397.9 MB, free: 15.72 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.948e-05/0.1096, allocations: 7.938 kB / 398 MB, free: 15.71 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001343/0.1098, allocations: 31.98 kB / 398 MB, free: 15.68 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.903e-05/0.1098, allocations: 35.73 kB / 398 MB, free: 15.65 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.502e-05/0.1099, allocations: 53.58 kB / 398.1 MB, free: 15.59 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002366/0.1101, allocations: 148 kB / 398.2 MB, free: 15.45 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.015e-06/0.1102, allocations: 0 / 398.2 MB, free: 15.45 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.1102, allocations: 0 / 398.2 MB, free: 15.45 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.306e-06/0.1102, allocations: 0 / 398.2 MB, free: 15.45 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0007427/0.1109, allocations: 0.4883 MB / 398.7 MB, free: 14.9 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.407e-05/0.111, allocations: 8.031 kB / 398.7 MB, free: 14.89 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.687e-05/0.1111, allocations: 15.81 kB / 398.7 MB, free: 14.88 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000357/0.1114, allocations: 261.6 kB / 399 MB, free: 14.58 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.158e-05/0.1115, allocations: 8 kB / 399 MB, free: 14.57 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.795e-05/0.1115, allocations: 4 kB / 399 MB, free: 14.57 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003277/0.1118, allocations: 142.7 kB / 399.1 MB, free: 14.4 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.107e-06/0.1118, allocations: 0 / 399.1 MB, free: 14.4 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.629e-05/0.1119, allocations: 4 kB / 399.1 MB, free: 14.4 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.003e-06/0.1119, allocations: 8 kB / 399.1 MB, free: 14.39 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.889e-05/0.112, allocations: 31.92 kB / 399.2 MB, free: 14.36 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004923/0.1125, allocations: 354.4 kB / 399.5 MB, free: 13.96 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001994/0.1127, allocations: 111.9 kB / 399.6 MB, free: 13.82 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.705e-05/0.1127, allocations: 4.062 kB / 399.6 MB, free: 13.82 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001431/0.1129, allocations: 75.5 kB / 399.7 MB, free: 13.73 MB / 302.1 MB Notification: Performance of pre-optimization done (n=9): time 1.463e-06/0.1129, allocations: 0 / 399.7 MB, free: 13.73 MB / 302.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003439/0.1132, allocations: 145.4 kB / 399.9 MB, free: 13.58 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.868e-05/0.1133, allocations: 132.5 kB / 400 MB, free: 13.42 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002575/0.1136, allocations: 268.9 kB / 400.2 MB, free: 13.15 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.816e-05/0.1136, allocations: 25.7 kB / 400.3 MB, free: 13.12 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.218e-05/0.1137, allocations: 120.4 kB / 400.4 MB, free: 13 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.453e-05/0.1137, allocations: 23.73 kB / 400.4 MB, free: 12.97 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.66e-06/0.1137, allocations: 4 kB / 400.4 MB, free: 12.97 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001202/0.1139, allocations: 326.8 kB / 400.7 MB, free: 12.64 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.196e-05/0.1139, allocations: 19.98 kB / 400.8 MB, free: 12.62 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.158e-05/0.114, allocations: 73.88 kB / 400.8 MB, free: 12.53 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.672e-05/0.1141, allocations: 32.09 kB / 400.9 MB, free: 12.5 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.1141, allocations: 0 / 400.9 MB, free: 12.5 MB / 302.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002016/0.1143, allocations: 113.4 kB / 401 MB, free: 12.38 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.761e-05/0.1144, allocations: 5.25 kB / 401 MB, free: 12.38 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.045e-06/0.1144, allocations: 4 kB / 401 MB, free: 12.37 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.463e-05/0.1144, allocations: 4.125 kB / 401 MB, free: 12.37 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001022/0.1145, allocations: 15.98 kB / 401 MB, free: 12.35 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.372e-06/0.1145, allocations: 0 / 401 MB, free: 12.35 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.577e-05/0.1146, allocations: 23.8 kB / 401 MB, free: 12.33 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.915e-06/0.1146, allocations: 0 / 401 MB, free: 12.33 MB / 302.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 ($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.0001343/0.1148, allocations: 153.5 kB / 401.2 MB, free: 12.17 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.587e-05/0.1148, allocations: 57.5 kB / 401.2 MB, free: 12.11 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.795e-05/0.1149, allocations: 29.75 kB / 401.3 MB, free: 12.08 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.435e-06/0.1149, allocations: 0 / 401.3 MB, free: 12.08 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.699e-06/0.1149, allocations: 4 kB / 401.3 MB, free: 12.07 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.787e-06/0.1149, allocations: 0 / 401.3 MB, free: 12.07 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001932/0.1151, allocations: 225.5 kB / 401.5 MB, free: 11.8 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.017e-06/0.1152, allocations: 0 / 401.5 MB, free: 11.8 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.853e-05/0.1152, allocations: 11.94 kB / 401.5 MB, free: 11.79 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.465e-06/0.1152, allocations: 4 kB / 401.5 MB, free: 11.79 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.124e-05/0.1152, allocations: 3.984 kB / 401.5 MB, free: 11.79 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.6e-06/0.1152, allocations: 4 kB / 401.5 MB, free: 11.78 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.362e-06/0.1152, allocations: 3.938 kB / 401.5 MB, free: 11.78 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002397/0.1155, allocations: 177.9 kB / 401.7 MB, free: 11.57 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.322e-05/0.1156, allocations: 112.9 kB / 401.8 MB, free: 11.44 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.779e-05/0.1156, allocations: 0 / 401.8 MB, free: 11.44 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.608e-05/0.1157, allocations: 12.06 kB / 401.8 MB, free: 11.43 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.791e-05/0.1158, allocations: 15.94 kB / 401.8 MB, free: 11.41 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.428e-05/0.1158, allocations: 4 kB / 401.8 MB, free: 11.41 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001867/0.116, allocations: 192.5 kB / 402 MB, free: 11.22 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.116, allocations: 0 / 402 MB, free: 11.22 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002721/0.1162, allocations: 32 kB / 402 MB, free: 11.19 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: 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.0009076/0.1172, allocations: 411.8 kB / 402.4 MB, free: 10.77 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000213/0.1174, allocations: 67.91 kB / 402.5 MB, free: 10.71 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.285e-06/0.1174, allocations: 0 / 402.5 MB, free: 10.71 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 7.642e-05/0.1175, allocations: 24.12 kB / 402.5 MB, free: 10.68 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003535/0.1179, allocations: 65.08 kB / 402.6 MB, free: 10.62 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006002/0.1185, allocations: 340.2 kB / 402.9 MB, free: 10.26 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003058/0.1188, allocations: 0.7283 MB / 403.7 MB, free: 9.504 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.362e-05/0.1189, allocations: 21.53 kB / 403.7 MB, free: 9.484 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.582e-05/0.1189, allocations: 23.44 kB / 403.7 MB, free: 9.461 MB / 302.1 MB Notification: Performance of SimCode: time 8.12e-07/0.1189, allocations: 0 / 403.7 MB, free: 9.461 MB / 302.1 MB Notification: Performance of Templates: time 0.005957/0.1249, allocations: 2.205 MB / 405.9 MB, free: 7.25 MB / 302.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: 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","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches