Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.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.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|backSample1.y|sample.y|shiftSample1.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample") translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|backSample1.y|sample.y|shiftSample1.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001679/0.001678, allocations: 177.8 kB / 16.77 MB, free: 4.926 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.543/1.543, allocations: 205.4 MB / 222.9 MB, free: 9.008 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.000819/0.0008187, allocations: 84.98 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.08515/0.08515, allocations: 12.59 MB / 332.1 MB, free: 11.24 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004495/0.0004499, allocations: 19.98 kB / 392.6 MB, free: 66.55 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09981/0.1003, allocations: 50.37 MB / 443 MB, free: 16.12 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample): time 0.00226/0.1026, allocations: 1.579 MB / 444.5 MB, free: 14.53 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001662/0.1043, allocations: 0.9993 MB / 445.5 MB, free: 13.52 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001906/0.1045, allocations: 4 kB / 445.5 MB, free: 13.52 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003785/0.1049, allocations: 63.78 kB / 445.6 MB, free: 13.46 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002715/0.1052, allocations: 71.66 kB / 445.7 MB, free: 13.39 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007069/0.1059, allocations: 203.6 kB / 445.9 MB, free: 13.19 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000226/0.1062, allocations: 151.5 kB / 446 MB, free: 13.04 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000156/0.1063, allocations: 29.55 kB / 446 MB, free: 13.01 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001174/0.1064, allocations: 71.62 kB / 446.1 MB, free: 12.94 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001103/0.1066, allocations: 67.69 kB / 446.2 MB, free: 12.88 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.334e-05/0.1066, allocations: 4 kB / 446.2 MB, free: 12.87 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001542/0.1068, allocations: 55.91 kB / 446.2 MB, free: 12.82 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.8e-05/0.1068, allocations: 47.83 kB / 446.3 MB, free: 12.77 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.081e-05/0.1069, allocations: 93.25 kB / 446.4 MB, free: 12.67 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002078/0.1071, allocations: 175.8 kB / 446.6 MB, free: 12.5 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.1e-06/0.1072, allocations: 4 kB / 446.6 MB, free: 12.5 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.653e-06/0.1072, allocations: 0 / 446.6 MB, free: 12.5 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.112e-06/0.1072, allocations: 0 / 446.6 MB, free: 12.5 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0006901/0.1079, allocations: 0.504 MB / 447.1 MB, free: 11.94 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.473e-05/0.1079, allocations: 8.031 kB / 447.1 MB, free: 11.93 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.719e-05/0.108, allocations: 32.56 kB / 447.1 MB, free: 11.9 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003193/0.1083, allocations: 291.5 kB / 447.4 MB, free: 11.57 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.503e-05/0.1084, allocations: 8.375 kB / 447.4 MB, free: 11.56 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.769e-05/0.1084, allocations: 8.125 kB / 447.4 MB, free: 11.55 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003457/0.1087, allocations: 192.3 kB / 447.6 MB, free: 11.34 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.366e-05/0.1088, allocations: 0 / 447.6 MB, free: 11.34 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.647e-05/0.1088, allocations: 4 kB / 447.6 MB, free: 11.33 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.6e-06/0.1088, allocations: 0 / 447.6 MB, free: 11.33 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001095/0.1089, allocations: 39.92 kB / 447.6 MB, free: 11.29 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004613/0.1094, allocations: 399.1 kB / 448 MB, free: 10.84 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002228/0.1096, allocations: 142.5 kB / 448.2 MB, free: 10.67 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.239e-05/0.1097, allocations: 55.42 kB / 448.2 MB, free: 10.6 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.057e-05/0.1097, allocations: 7.938 kB / 448.2 MB, free: 10.59 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001855/0.1099, allocations: 79.38 kB / 448.3 MB, free: 10.5 MB / 298.7 MB Notification: Performance of pre-optimization done (n=11): time 1.463e-06/0.1099, allocations: 0 / 448.3 MB, free: 10.5 MB / 298.7 MB Notification: Performance of matching and sorting (n=11): time 0.0003924/0.1103, allocations: 169.2 kB / 448.5 MB, free: 10.33 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.607e-05/0.1104, allocations: 191.9 kB / 448.7 MB, free: 10.1 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002688/0.1107, allocations: 335 kB / 449 MB, free: 9.766 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.467e-05/0.1107, allocations: 29.7 kB / 449 MB, free: 9.73 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.884e-05/0.1108, allocations: 124.4 kB / 449.1 MB, free: 9.605 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.212e-05/0.1108, allocations: 31.73 kB / 449.2 MB, free: 9.574 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.971e-06/0.1108, allocations: 0 / 449.2 MB, free: 9.574 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.118e-05/0.1109, allocations: 338.8 kB / 449.5 MB, free: 9.234 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.244e-05/0.111, allocations: 27.92 kB / 449.5 MB, free: 9.207 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.072e-05/0.1111, allocations: 108.6 kB / 449.6 MB, free: 9.07 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001361/0.1112, allocations: 97.88 kB / 449.7 MB, free: 8.953 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-06/0.1112, allocations: 4 kB / 449.7 MB, free: 8.949 MB / 298.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002015/0.1114, allocations: 137.2 kB / 449.9 MB, free: 8.809 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.323e-05/0.1115, allocations: 4 kB / 449.9 MB, free: 8.805 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.692e-06/0.1115, allocations: 4 kB / 449.9 MB, free: 8.801 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.423e-05/0.1115, allocations: 192 / 449.9 MB, free: 8.801 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001098/0.1116, allocations: 35.92 kB / 449.9 MB, free: 8.766 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.724e-06/0.1116, allocations: 0 / 449.9 MB, free: 8.766 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.749e-05/0.1117, allocations: 11.94 kB / 449.9 MB, free: 8.754 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.083e-05/0.1117, allocations: 8.297 kB / 449.9 MB, free: 8.746 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,table.y,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,backSample1.y,backSample1.u,shiftSample1.y,shiftSample1.u,sample.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * 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.0001112/0.1118, allocations: 158.5 kB / 450.1 MB, free: 8.582 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.967e-05/0.1119, allocations: 81.34 kB / 450.2 MB, free: 8.496 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.127e-05/0.112, allocations: 29.8 kB / 450.2 MB, free: 8.469 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.807e-06/0.112, allocations: 4 kB / 450.2 MB, free: 8.465 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.448e-06/0.112, allocations: 0 / 450.2 MB, free: 8.465 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.63e-06/0.112, allocations: 3.938 kB / 450.2 MB, free: 8.461 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000168/0.1122, allocations: 249.4 kB / 450.4 MB, free: 8.168 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.813e-06/0.1122, allocations: 0 / 450.4 MB, free: 8.168 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.706e-05/0.1123, allocations: 19.92 kB / 450.5 MB, free: 8.148 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.006e-06/0.1123, allocations: 4 kB / 450.5 MB, free: 8.145 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.284e-05/0.1123, allocations: 4 kB / 450.5 MB, free: 8.141 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.833e-06/0.1123, allocations: 3.938 kB / 450.5 MB, free: 8.137 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.1123, allocations: 4 kB / 450.5 MB, free: 8.133 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002303/0.1125, allocations: 183.3 kB / 450.6 MB, free: 7.926 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.793e-05/0.1126, allocations: 116.8 kB / 450.8 MB, free: 7.793 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.034e-05/0.1127, allocations: 4 kB / 450.8 MB, free: 7.789 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.648e-05/0.1127, allocations: 11.98 kB / 450.8 MB, free: 7.777 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.579e-05/0.1128, allocations: 8 kB / 450.8 MB, free: 7.77 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.892e-05/0.1128, allocations: 11.92 kB / 450.8 MB, free: 7.758 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001819/0.113, allocations: 241.9 kB / 451 MB, free: 7.52 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.113, allocations: 0 / 451 MB, free: 7.52 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002594/0.1133, allocations: 35.98 kB / 451.1 MB, free: 7.484 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,backSample1.y,shiftSample1.y,backSample1.u,sample.y,shiftSample1.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 (11): * Single equations (assignments): 9 * 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.0008392/0.1141, allocations: 433.1 kB / 451.5 MB, free: 7.051 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002176/0.1143, allocations: 83.84 kB / 451.6 MB, free: 6.969 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.1144, allocations: 4 kB / 451.6 MB, free: 6.965 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 6.843e-05/0.1144, allocations: 27.98 kB / 451.6 MB, free: 6.938 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004164/0.1149, allocations: 72.83 kB / 451.7 MB, free: 6.863 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005487/0.1154, allocations: 447.8 kB / 452.1 MB, free: 6.391 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001737/0.1156, allocations: 0.7517 MB / 452.9 MB, free: 5.613 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.925e-05/0.1157, allocations: 23.42 kB / 452.9 MB, free: 5.594 MB / 298.7 MB Notification: Performance of SimCode: time 3.01e-07/0.1157, allocations: 0 / 452.9 MB, free: 5.594 MB / 298.7 MB Notification: Performance of Templates: time 0.004552/0.1202, allocations: 3.051 MB / 455.9 MB, free: 2.535 MB / 298.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches