Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.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.IntegerSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|subSample.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample") translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|subSample.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001176/0.001176, allocations: 173.7 kB / 16.76 MB, free: 5.047 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.461/1.461, allocations: 205.4 MB / 222.9 MB, free: 9.016 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.0008413/0.0008412, allocations: 94.28 kB / 271.3 MB, free: 8.246 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.09538/0.09538, allocations: 12.59 MB / 332.1 MB, free: 11.26 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004856/0.000486, allocations: 20 kB / 392.6 MB, free: 66.56 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09908/0.09959, allocations: 50.38 MB / 443 MB, free: 16.12 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample): time 0.002194/0.1018, allocations: 1.536 MB / 444.5 MB, free: 14.57 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001593/0.1035, allocations: 0.9642 MB / 445.5 MB, free: 13.6 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001665/0.1037, allocations: 4 kB / 445.5 MB, free: 13.6 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003523/0.1041, allocations: 63.77 kB / 445.5 MB, free: 13.54 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002686/0.1043, allocations: 67.73 kB / 445.6 MB, free: 13.47 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006749/0.105, allocations: 199.6 kB / 445.8 MB, free: 13.27 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002183/0.1053, allocations: 151.5 kB / 445.9 MB, free: 13.12 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001345/0.1054, allocations: 29.53 kB / 446 MB, free: 13.1 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001155/0.1055, allocations: 59.7 kB / 446 MB, free: 13.04 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000113/0.1056, allocations: 63.69 kB / 446.1 MB, free: 12.98 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.416e-05/0.1057, allocations: 0 / 446.1 MB, free: 12.98 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001513/0.1058, allocations: 55.97 kB / 446.2 MB, free: 12.92 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.276e-05/0.1059, allocations: 51.81 kB / 446.2 MB, free: 12.87 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.387e-05/0.106, allocations: 85.27 kB / 446.3 MB, free: 12.78 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002255/0.1062, allocations: 167.9 kB / 446.4 MB, free: 12.62 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.721e-06/0.1062, allocations: 0 / 446.4 MB, free: 12.62 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.164e-06/0.1063, allocations: 0 / 446.4 MB, free: 12.62 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.229e-05/0.1063, allocations: 0 / 446.4 MB, free: 12.62 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.0007209/0.107, allocations: 0.4962 MB / 446.9 MB, free: 12.07 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.156e-05/0.107, allocations: 12.03 kB / 447 MB, free: 12.05 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.046e-05/0.1071, allocations: 24.66 kB / 447 MB, free: 12.03 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003579/0.1075, allocations: 287.6 kB / 447.3 MB, free: 11.71 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.623e-05/0.1075, allocations: 4.375 kB / 447.3 MB, free: 11.7 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.283e-05/0.1076, allocations: 12.12 kB / 447.3 MB, free: 11.69 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003216/0.1079, allocations: 159.6 kB / 447.4 MB, free: 11.51 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.48e-05/0.1079, allocations: 4 kB / 447.4 MB, free: 11.5 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.305e-05/0.1079, allocations: 3.938 kB / 447.4 MB, free: 11.5 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.281e-06/0.108, allocations: 0 / 447.4 MB, free: 11.5 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001161/0.1081, allocations: 35.92 kB / 447.5 MB, free: 11.46 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005407/0.1086, allocations: 386.3 kB / 447.9 MB, free: 11.03 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002201/0.1089, allocations: 119.9 kB / 448 MB, free: 10.89 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.901e-05/0.109, allocations: 50.56 kB / 448 MB, free: 10.83 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.811e-05/0.109, allocations: 7.938 kB / 448 MB, free: 10.82 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002075/0.1092, allocations: 71.38 kB / 448.1 MB, free: 10.74 MB / 298.7 MB Notification: Performance of pre-optimization done (n=9): time 1.913e-06/0.1092, allocations: 0 / 448.1 MB, free: 10.74 MB / 298.7 MB Notification: Performance of matching and sorting (n=9): time 0.0004185/0.1097, allocations: 149.4 kB / 448.2 MB, free: 10.59 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.932e-05/0.1097, allocations: 166.4 kB / 448.4 MB, free: 10.39 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002755/0.11, allocations: 334.5 kB / 448.7 MB, free: 10.05 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.922e-05/0.11, allocations: 29.7 kB / 448.8 MB, free: 10.02 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.911e-05/0.1101, allocations: 124.1 kB / 448.9 MB, free: 9.891 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.434e-05/0.1102, allocations: 19.8 kB / 448.9 MB, free: 9.871 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.763e-06/0.1102, allocations: 4 kB / 448.9 MB, free: 9.867 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.959e-05/0.1102, allocations: 334.8 kB / 449.2 MB, free: 9.531 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.247e-05/0.1103, allocations: 27.98 kB / 449.3 MB, free: 9.504 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.41e-05/0.1104, allocations: 86.78 kB / 449.3 MB, free: 9.395 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001285/0.1105, allocations: 84.22 kB / 449.4 MB, free: 9.297 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.1105, allocations: 0 / 449.4 MB, free: 9.297 MB / 298.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002083/0.1108, allocations: 117.4 kB / 449.5 MB, free: 9.176 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.744e-05/0.1108, allocations: 11.94 kB / 449.6 MB, free: 9.164 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.531e-06/0.1108, allocations: 0 / 449.6 MB, free: 9.164 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.46e-05/0.1108, allocations: 4 kB / 449.6 MB, free: 9.16 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001096/0.1109, allocations: 19.92 kB / 449.6 MB, free: 9.141 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.005e-06/0.1109, allocations: 12.06 kB / 449.6 MB, free: 9.129 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.991e-05/0.111, allocations: 19.83 kB / 449.6 MB, free: 9.109 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.287e-06/0.111, allocations: 4 kB / 449.6 MB, free: 9.105 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,table.y,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.0001194/0.1112, allocations: 154.4 kB / 449.8 MB, free: 8.945 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.184e-05/0.1112, allocations: 69.34 kB / 449.8 MB, free: 8.871 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.434e-05/0.1113, allocations: 25.75 kB / 449.9 MB, free: 8.848 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.769e-06/0.1113, allocations: 7.984 kB / 449.9 MB, free: 8.84 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.24e-06/0.1113, allocations: 4.062 kB / 449.9 MB, free: 8.836 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.069e-06/0.1113, allocations: 3.938 kB / 449.9 MB, free: 8.832 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001942/0.1115, allocations: 237.6 kB / 450.1 MB, free: 8.551 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.046e-06/0.1116, allocations: 0 / 450.1 MB, free: 8.551 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.127e-05/0.1116, allocations: 15.98 kB / 450.1 MB, free: 8.535 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.136e-06/0.1116, allocations: 0 / 450.1 MB, free: 8.535 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.219e-05/0.1116, allocations: 320 / 450.1 MB, free: 8.535 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.665e-06/0.1117, allocations: 4 kB / 450.1 MB, free: 8.531 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.556e-06/0.1117, allocations: 4 kB / 450.1 MB, free: 8.527 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002231/0.1119, allocations: 170.4 kB / 450.3 MB, free: 8.336 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.602e-05/0.112, allocations: 112.9 kB / 450.4 MB, free: 8.207 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.035e-05/0.112, allocations: 7.938 kB / 450.4 MB, free: 8.199 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.343e-05/0.1121, allocations: 4 kB / 450.4 MB, free: 8.195 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.564e-05/0.1121, allocations: 11.98 kB / 450.4 MB, free: 8.184 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.937e-05/0.1122, allocations: 7.938 kB / 450.4 MB, free: 8.176 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001784/0.1124, allocations: 241.9 kB / 450.7 MB, free: 7.938 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1124, allocations: 0 / 450.7 MB, free: 7.938 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002682/0.1126, allocations: 35.91 kB / 450.7 MB, free: 7.902 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,table.y,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.0009749/0.1136, allocations: 421.7 kB / 451.1 MB, free: 7.484 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002213/0.1139, allocations: 67.91 kB / 451.2 MB, free: 7.418 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 4.208e-06/0.1139, allocations: 4 kB / 451.2 MB, free: 7.414 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 6.977e-05/0.1139, allocations: 32.17 kB / 451.2 MB, free: 7.383 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004041/0.1144, allocations: 60.42 kB / 451.3 MB, free: 7.324 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000562/0.1149, allocations: 422.1 kB / 451.7 MB, free: 6.879 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001745/0.1151, allocations: 0.7439 MB / 452.4 MB, free: 6.109 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.897e-05/0.1152, allocations: 23.42 kB / 452.5 MB, free: 6.09 MB / 298.7 MB Notification: Performance of SimCode: time 3e-07/0.1152, allocations: 0 / 452.5 MB, free: 6.09 MB / 298.7 MB Notification: Performance of Templates: time 0.0051/0.1203, allocations: 2.848 MB / 455.3 MB, free: 3.238 MB / 298.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches