Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample1.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.Sample1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|assignClock.y|sample.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample1") translateModel(Modelica_Synchronous.Examples.Elementary.RealSignals.Sample1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|assignClock.y|sample.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002183/0.002183, allocations: 175.6 kB / 16.77 MB, free: 4.902 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.519/1.519, allocations: 205.4 MB / 222.9 MB, free: 8.926 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.0009767/0.0009767, allocations: 86.42 kB / 271.3 MB, free: 8.238 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.1144/0.1144, allocations: 12.59 MB / 332.2 MB, free: 11.23 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004472/0.0004473, allocations: 16 kB / 392.6 MB, free: 66.55 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1001/0.1006, allocations: 50.37 MB / 443 MB, free: 16.12 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.Sample1): time 0.001611/0.1022, allocations: 1.27 MB / 444.2 MB, free: 14.84 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.000668/0.1029, allocations: 480 kB / 444.7 MB, free: 14.36 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.058e-05/0.103, allocations: 4 kB / 444.7 MB, free: 14.36 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.619e-05/0.103, allocations: 3.984 kB / 444.7 MB, free: 14.36 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001436/0.1032, allocations: 11.92 kB / 444.7 MB, free: 14.34 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002752/0.1035, allocations: 35.91 kB / 444.8 MB, free: 14.31 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 8.444e-05/0.1036, allocations: 43.84 kB / 444.8 MB, free: 14.27 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001124/0.1037, allocations: 16 kB / 444.8 MB, free: 14.25 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.13e-05/0.1038, allocations: 11.92 kB / 444.8 MB, free: 14.24 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.511e-05/0.1038, allocations: 23.86 kB / 444.8 MB, free: 14.21 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.826e-05/0.1039, allocations: 0 / 444.8 MB, free: 14.21 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.358e-05/0.1039, allocations: 7.938 kB / 444.9 MB, free: 14.21 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.922e-05/0.1039, allocations: 15.92 kB / 444.9 MB, free: 14.19 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.055e-05/0.104, allocations: 45.56 kB / 444.9 MB, free: 14.14 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 6.943e-05/0.104, allocations: 27.95 kB / 444.9 MB, free: 14.11 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.129e-06/0.1041, allocations: 0 / 444.9 MB, free: 14.11 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.824e-06/0.1041, allocations: 0 / 444.9 MB, free: 14.11 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.957e-06/0.1041, allocations: 0 / 444.9 MB, free: 14.11 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0004096/0.1045, allocations: 367.5 kB / 445.3 MB, free: 13.71 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.598e-05/0.1045, allocations: 8.031 kB / 445.3 MB, free: 13.7 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.569e-05/0.1046, allocations: 16.84 kB / 445.3 MB, free: 13.68 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001663/0.1047, allocations: 196.7 kB / 445.5 MB, free: 13.45 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.296e-05/0.1048, allocations: 4.375 kB / 445.5 MB, free: 13.45 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.314e-05/0.1048, allocations: 4.375 kB / 445.5 MB, free: 13.45 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002646/0.1051, allocations: 121.3 kB / 445.6 MB, free: 13.31 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.556e-06/0.1051, allocations: 0 / 445.6 MB, free: 13.31 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.516e-06/0.1051, allocations: 0 / 445.6 MB, free: 13.31 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.819e-06/0.1051, allocations: 0 / 445.6 MB, free: 13.31 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.435e-05/0.1052, allocations: 27.92 kB / 445.7 MB, free: 13.28 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002823/0.1055, allocations: 269.7 kB / 445.9 MB, free: 12.96 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001744/0.1057, allocations: 142.2 kB / 446.1 MB, free: 12.79 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.276e-05/0.1057, allocations: 33.77 kB / 446.1 MB, free: 12.75 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.939e-05/0.1058, allocations: 0 / 446.1 MB, free: 12.75 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.8e-05/0.1058, allocations: 38.55 kB / 446.1 MB, free: 12.7 MB / 298.7 MB Notification: Performance of pre-optimization done (n=4): time 1.633e-06/0.1058, allocations: 0 / 446.1 MB, free: 12.7 MB / 298.7 MB Notification: Performance of matching and sorting (n=4): time 0.0002391/0.106, allocations: 93.45 kB / 446.2 MB, free: 12.61 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.691e-05/0.1061, allocations: 77.11 kB / 446.3 MB, free: 12.51 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.658e-05/0.1062, allocations: 147.6 kB / 446.5 MB, free: 12.36 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 7.413e-06/0.1062, allocations: 25.7 kB / 446.5 MB, free: 12.33 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.67e-05/0.1062, allocations: 88.14 kB / 446.6 MB, free: 12.24 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.197e-05/0.1062, allocations: 3.906 kB / 446.6 MB, free: 12.23 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.827e-06/0.1063, allocations: 0 / 446.6 MB, free: 12.23 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.253e-05/0.1063, allocations: 322.7 kB / 446.9 MB, free: 11.91 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.86e-05/0.1064, allocations: 11.98 kB / 446.9 MB, free: 11.9 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.149e-05/0.1064, allocations: 43.42 kB / 446.9 MB, free: 11.84 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.858e-05/0.1065, allocations: 51.36 kB / 447 MB, free: 11.78 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.1065, allocations: 0 / 447 MB, free: 11.78 MB / 298.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.000114/0.1066, allocations: 73.61 kB / 447.1 MB, free: 11.7 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.39e-05/0.1066, allocations: 4 kB / 447.1 MB, free: 11.7 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.112e-06/0.1067, allocations: 0 / 447.1 MB, free: 11.7 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.428e-05/0.1067, allocations: 4 kB / 447.1 MB, free: 11.7 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.213e-05/0.1067, allocations: 8 kB / 447.1 MB, free: 11.69 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.521e-06/0.1068, allocations: 4.125 kB / 447.1 MB, free: 11.68 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.018e-05/0.1068, allocations: 7.984 kB / 447.1 MB, free: 11.68 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.586e-06/0.1068, allocations: 4 kB / 447.1 MB, free: 11.67 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (4): * Single equations (assignments): 4 * 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 6.143e-05/0.1069, allocations: 125.5 kB / 447.2 MB, free: 11.54 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.017e-05/0.1069, allocations: 49.59 kB / 447.3 MB, free: 11.48 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.798e-05/0.107, allocations: 12.25 kB / 447.3 MB, free: 11.47 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.643e-06/0.107, allocations: 0 / 447.3 MB, free: 11.47 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.909e-06/0.107, allocations: 0 / 447.3 MB, free: 11.47 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.845e-06/0.107, allocations: 4 kB / 447.3 MB, free: 11.46 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001283/0.1071, allocations: 173.6 kB / 447.5 MB, free: 11.25 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.1072, allocations: 3.984 kB / 447.5 MB, free: 11.24 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.005e-05/0.1072, allocations: 8 kB / 447.5 MB, free: 11.23 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.664e-06/0.1072, allocations: 0 / 447.5 MB, free: 11.23 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.414e-06/0.1072, allocations: 0 / 447.5 MB, free: 11.23 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.126e-06/0.1072, allocations: 4 kB / 447.5 MB, free: 11.23 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/0.1072, allocations: 7.938 kB / 447.5 MB, free: 11.22 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001813/0.1074, allocations: 176.2 kB / 447.6 MB, free: 11.03 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.372e-05/0.1075, allocations: 93 kB / 447.7 MB, free: 10.92 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.373e-05/0.1075, allocations: 0 / 447.7 MB, free: 10.92 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.378e-05/0.1076, allocations: 11.92 kB / 447.7 MB, free: 10.91 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.926e-05/0.1076, allocations: 0 / 447.7 MB, free: 10.91 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.657e-06/0.1076, allocations: 0 / 447.7 MB, free: 10.91 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.923e-05/0.1077, allocations: 114.1 kB / 447.9 MB, free: 10.8 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1077, allocations: 0 / 447.9 MB, free: 10.8 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002101/0.1079, allocations: 12 kB / 447.9 MB, free: 10.79 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (4): * Single equations (assignments): 4 * 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 7.789e-05/0.108, allocations: 91.25 kB / 448 MB, free: 10.69 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001294/0.1081, allocations: 32.3 kB / 448 MB, free: 10.66 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.885e-06/0.1081, allocations: 7.938 kB / 448 MB, free: 10.65 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.499e-05/0.1082, allocations: 12.23 kB / 448 MB, free: 10.64 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003521/0.1085, allocations: 31.91 kB / 448 MB, free: 10.61 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002963/0.1088, allocations: 219 kB / 448.3 MB, free: 10.36 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001662/0.109, allocations: 0.7005 MB / 449 MB, free: 9.633 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.097e-05/0.109, allocations: 11.44 kB / 449 MB, free: 9.621 MB / 298.7 MB Notification: Performance of SimCode: time 3.31e-07/0.1091, allocations: 0 / 449 MB, free: 9.621 MB / 298.7 MB Notification: Performance of Templates: time 0.001927/0.111, allocations: 0.7264 MB / 449.7 MB, free: 8.895 MB / 298.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample1.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample1.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample1.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample1.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample1.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample1 --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample1.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.RealSignals.Sample1.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches