Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.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.RealSignals.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="backSample1.y|sample.y|shiftSample1.y|time",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.BackSample") translateModel(Modelica_Synchronous.Examples.Elementary.RealSignals.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="backSample1.y|sample.y|shiftSample1.y|time",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.BackSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009038/0.0009038, allocations: 179.9 kB / 16.45 MB, free: 5.68 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.501/1.501, allocations: 205.4 MB / 222.6 MB, free: 9.113 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.0008234/0.0008232, allocations: 87.86 kB / 270.9 MB, free: 8.363 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.07613/0.07613, allocations: 12.58 MB / 331.8 MB, free: 11.38 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005678/0.0005678, allocations: 16 kB / 392 MB, free: 66.9 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1088/0.1094, allocations: 50.38 MB / 442.4 MB, free: 16.46 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.BackSample): time 0.001809/0.1113, allocations: 1.297 MB / 443.7 MB, free: 15.15 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009273/0.1122, allocations: 0.5272 MB / 444.2 MB, free: 14.62 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.736e-05/0.1123, allocations: 4 kB / 444.2 MB, free: 14.61 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.551e-05/0.1124, allocations: 7.875 kB / 444.2 MB, free: 14.61 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001437/0.1125, allocations: 15.92 kB / 444.2 MB, free: 14.59 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003132/0.1129, allocations: 43.89 kB / 444.3 MB, free: 14.55 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001089/0.113, allocations: 55.78 kB / 444.3 MB, free: 14.49 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001089/0.1131, allocations: 8 kB / 444.3 MB, free: 14.48 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.741e-05/0.1132, allocations: 31.84 kB / 444.4 MB, free: 14.45 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.049e-05/0.1133, allocations: 27.86 kB / 444.4 MB, free: 14.43 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.298e-05/0.1133, allocations: 4 kB / 444.4 MB, free: 14.42 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.512e-05/0.1133, allocations: 0 / 444.4 MB, free: 14.42 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.995e-05/0.1134, allocations: 11.92 kB / 444.4 MB, free: 14.41 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.37e-05/0.1134, allocations: 37.64 kB / 444.4 MB, free: 14.37 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 8.854e-05/0.1135, allocations: 39.92 kB / 444.5 MB, free: 14.33 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.109e-06/0.1135, allocations: 0 / 444.5 MB, free: 14.33 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.823e-06/0.1135, allocations: 0 / 444.5 MB, free: 14.33 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.91e-06/0.1135, allocations: 0 / 444.5 MB, free: 14.33 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.000458/0.114, allocations: 383.2 kB / 444.9 MB, free: 13.91 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.968e-05/0.114, allocations: 8.031 kB / 444.9 MB, free: 13.9 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.224e-05/0.1141, allocations: 19.8 kB / 444.9 MB, free: 13.88 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002035/0.1143, allocations: 202.8 kB / 445.1 MB, free: 13.64 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.18e-05/0.1143, allocations: 0 / 445.1 MB, free: 13.64 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.632e-05/0.1144, allocations: 4 kB / 445.1 MB, free: 13.64 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003555/0.1147, allocations: 146.7 kB / 445.2 MB, free: 13.47 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.057e-05/0.1147, allocations: 4 kB / 445.2 MB, free: 13.46 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.104e-05/0.1148, allocations: 0 / 445.2 MB, free: 13.46 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.991e-06/0.1148, allocations: 0 / 445.2 MB, free: 13.46 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001203/0.1149, allocations: 31.92 kB / 445.3 MB, free: 13.43 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003314/0.1152, allocations: 287.5 kB / 445.5 MB, free: 13.09 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001331/0.1154, allocations: 98.36 kB / 445.6 MB, free: 12.96 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.311e-05/0.1155, allocations: 47.48 kB / 445.7 MB, free: 12.9 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.639e-05/0.1155, allocations: 0 / 445.7 MB, free: 12.9 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.826e-05/0.1156, allocations: 42.5 kB / 445.7 MB, free: 12.85 MB / 298.7 MB Notification: Performance of pre-optimization done (n=6): time 2.134e-06/0.1156, allocations: 0 / 445.7 MB, free: 12.85 MB / 298.7 MB Notification: Performance of matching and sorting (n=6): time 0.0003457/0.1159, allocations: 109.3 kB / 445.8 MB, free: 12.74 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.158e-05/0.116, allocations: 145 kB / 446 MB, free: 12.57 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001259/0.1161, allocations: 150.3 kB / 446.1 MB, free: 12.41 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.228e-05/0.1162, allocations: 29.7 kB / 446.2 MB, free: 12.38 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.869e-05/0.1162, allocations: 88.33 kB / 446.2 MB, free: 12.29 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.668e-05/0.1162, allocations: 7.984 kB / 446.2 MB, free: 12.28 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.649e-06/0.1162, allocations: 0 / 446.2 MB, free: 12.28 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.344e-05/0.1163, allocations: 318.8 kB / 446.6 MB, free: 11.96 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.132e-05/0.1164, allocations: 19.98 kB / 446.6 MB, free: 11.94 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.472e-05/0.1164, allocations: 49.14 kB / 446.6 MB, free: 11.87 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.858e-05/0.1165, allocations: 23.94 kB / 446.6 MB, free: 11.85 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.405e-06/0.1165, allocations: 0 / 446.6 MB, free: 11.85 MB / 298.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001855/0.1167, allocations: 89.45 kB / 446.7 MB, free: 11.75 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.515e-05/0.1168, allocations: 4 kB / 446.7 MB, free: 11.75 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.983e-06/0.1168, allocations: 4.125 kB / 446.7 MB, free: 11.75 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.477e-05/0.1168, allocations: 8.188 kB / 446.8 MB, free: 11.74 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000106/0.1169, allocations: 15.98 kB / 446.8 MB, free: 11.72 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.604e-06/0.1169, allocations: 0 / 446.8 MB, free: 11.72 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.604e-05/0.117, allocations: 4 kB / 446.8 MB, free: 11.72 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.041e-05/0.117, allocations: 4 kB / 446.8 MB, free: 11.71 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (6): * Single equations (assignments): 6 * 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 7.991e-05/0.1171, allocations: 133.5 kB / 446.9 MB, free: 11.57 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001072/0.1172, allocations: 65.53 kB / 447 MB, free: 11.5 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.7e-05/0.1173, allocations: 27.8 kB / 447 MB, free: 11.48 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.876e-06/0.1173, allocations: 0 / 447 MB, free: 11.48 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.571e-06/0.1173, allocations: 4 kB / 447 MB, free: 11.47 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.737e-06/0.1173, allocations: 0 / 447 MB, free: 11.47 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001958/0.1175, allocations: 185.5 kB / 447.2 MB, free: 11.24 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-06/0.1175, allocations: 0 / 447.2 MB, free: 11.24 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.805e-05/0.1176, allocations: 15.98 kB / 447.2 MB, free: 11.23 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.396e-06/0.1176, allocations: 0 / 447.2 MB, free: 11.23 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.062e-05/0.1176, allocations: 4 kB / 447.2 MB, free: 11.22 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.894e-06/0.1177, allocations: 0 / 447.2 MB, free: 11.22 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/0.1177, allocations: 4 kB / 447.2 MB, free: 11.22 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002082/0.1179, allocations: 201.9 kB / 447.4 MB, free: 11 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.274e-05/0.118, allocations: 97 kB / 447.5 MB, free: 10.88 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.237e-05/0.118, allocations: 7.984 kB / 447.5 MB, free: 10.88 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001144/0.1181, allocations: 7.938 kB / 447.5 MB, free: 10.87 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.729e-05/0.1182, allocations: 0 / 447.5 MB, free: 10.87 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.933e-06/0.1182, allocations: 4 kB / 447.5 MB, free: 10.86 MB / 298.7 MB Notification: Performance of sorting global known variables: time 7.52e-05/0.1183, allocations: 119.1 kB / 447.6 MB, free: 10.75 MB / 298.7 MB Notification: Performance of sort global known variables: time 2.3e-07/0.1183, allocations: 0 / 447.6 MB, free: 10.75 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003787/0.1187, allocations: 8 kB / 447.6 MB, free: 10.74 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 6 * 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 Backend phase and start with SimCode phase: time 8.281e-05/0.1187, allocations: 95.19 kB / 447.7 MB, free: 10.64 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000186/0.1189, allocations: 51.91 kB / 447.8 MB, free: 10.59 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.119, allocations: 3.938 kB / 447.8 MB, free: 10.58 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 4.988e-05/0.119, allocations: 8 kB / 447.8 MB, free: 10.57 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005413/0.1196, allocations: 44.53 kB / 447.8 MB, free: 10.53 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004026/0.12, allocations: 261.4 kB / 448.1 MB, free: 10.23 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001344/0.1201, allocations: 0.7004 MB / 448.8 MB, free: 9.504 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.411e-05/0.1202, allocations: 11.44 kB / 448.8 MB, free: 9.496 MB / 298.7 MB Notification: Performance of SimCode: time 2.91e-07/0.1202, allocations: 0 / 448.8 MB, free: 9.496 MB / 298.7 MB Notification: Performance of Templates: time 0.002548/0.1227, allocations: 1.004 MB / 449.8 MB, free: 8.492 MB / 298.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.BackSample.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.BackSample.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.BackSample.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.BackSample.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.BackSample.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.BackSample --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.BackSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.BackSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.RealSignals.BackSample.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.BackSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches