Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.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.Sample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|assignClock.y|sample.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2") translateModel(Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|assignClock.y|sample.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001224/0.001224, allocations: 172.8 kB / 16.76 MB, free: 4.934 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.5/1.5, allocations: 205.4 MB / 222.9 MB, free: 9 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.0007505/0.0007506, allocations: 90.41 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.08387/0.08387, allocations: 12.59 MB / 332.2 MB, free: 11.23 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004137/0.0004138, allocations: 23.98 kB / 392.6 MB, free: 66.54 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1061/0.1065, allocations: 50.37 MB / 443 MB, free: 16.12 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2): time 0.001503/0.1081, allocations: 1.247 MB / 444.2 MB, free: 14.86 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003043/0.1084, allocations: 135.6 kB / 444.3 MB, free: 14.72 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.641e-05/0.1085, allocations: 7.938 kB / 444.3 MB, free: 14.71 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 2.951e-05/0.1085, allocations: 0 / 444.3 MB, free: 14.71 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001322/0.1087, allocations: 7.922 kB / 444.4 MB, free: 14.71 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000235/0.1089, allocations: 31.97 kB / 444.4 MB, free: 14.68 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 8.857e-05/0.109, allocations: 31.86 kB / 444.4 MB, free: 14.64 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001026/0.1091, allocations: 16 kB / 444.4 MB, free: 14.63 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.186e-05/0.1092, allocations: 11.92 kB / 444.4 MB, free: 14.62 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.22e-05/0.1092, allocations: 11.94 kB / 444.5 MB, free: 14.61 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.905e-05/0.1092, allocations: 0 / 444.5 MB, free: 14.61 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.104e-05/0.1093, allocations: 0 / 444.5 MB, free: 14.61 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.774e-05/0.1093, allocations: 15.91 kB / 444.5 MB, free: 14.59 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.031e-05/0.1093, allocations: 41.58 kB / 444.5 MB, free: 14.54 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 6.568e-05/0.1094, allocations: 27.89 kB / 444.5 MB, free: 14.52 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.19e-06/0.1094, allocations: 0 / 444.5 MB, free: 14.52 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.585e-06/0.1094, allocations: 8 kB / 444.5 MB, free: 14.51 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.938e-06/0.1094, allocations: 0 / 444.5 MB, free: 14.51 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.0003861/0.1098, allocations: 359.5 kB / 444.9 MB, free: 14.11 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.813e-05/0.1099, allocations: 8.031 kB / 444.9 MB, free: 14.1 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.983e-05/0.1099, allocations: 8.844 kB / 444.9 MB, free: 14.09 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001513/0.1101, allocations: 196.1 kB / 445.1 MB, free: 13.86 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.238e-05/0.1101, allocations: 4.375 kB / 445.1 MB, free: 13.86 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.32e-05/0.1101, allocations: 384 / 445.1 MB, free: 13.86 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002525/0.1104, allocations: 121.6 kB / 445.2 MB, free: 13.72 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.456e-06/0.1104, allocations: 192 / 445.2 MB, free: 13.72 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.264e-05/0.1104, allocations: 11.92 kB / 445.2 MB, free: 13.71 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.039e-06/0.1104, allocations: 0 / 445.2 MB, free: 13.71 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.969e-05/0.1105, allocations: 27.92 kB / 445.3 MB, free: 13.68 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002761/0.1108, allocations: 257.7 kB / 445.5 MB, free: 13.38 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001791/0.111, allocations: 150.2 kB / 445.7 MB, free: 13.19 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.134e-05/0.1111, allocations: 29.78 kB / 445.7 MB, free: 13.16 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.012e-05/0.1111, allocations: 3.984 kB / 445.7 MB, free: 13.15 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.384e-05/0.1111, allocations: 30.56 kB / 445.7 MB, free: 13.11 MB / 298.7 MB Notification: Performance of pre-optimization done (n=4): time 1.072e-06/0.1111, allocations: 0 / 445.7 MB, free: 13.11 MB / 298.7 MB Notification: Performance of matching and sorting (n=4): time 0.0002187/0.1114, allocations: 81.61 kB / 445.8 MB, free: 13.03 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.097e-05/0.1114, allocations: 81.11 kB / 445.9 MB, free: 12.93 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.418e-05/0.1115, allocations: 138 kB / 446 MB, free: 12.78 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.071e-05/0.1115, allocations: 25.7 kB / 446 MB, free: 12.75 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.131e-05/0.1115, allocations: 92.06 kB / 446.1 MB, free: 12.66 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.176e-05/0.1116, allocations: 11.97 kB / 446.1 MB, free: 12.64 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.825e-06/0.1116, allocations: 8 kB / 446.2 MB, free: 12.64 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.32e-05/0.1116, allocations: 310.8 kB / 446.5 MB, free: 12.32 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.63e-05/0.1117, allocations: 11.98 kB / 446.5 MB, free: 12.31 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.945e-05/0.1117, allocations: 35.38 kB / 446.5 MB, free: 12.27 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.978e-05/0.1118, allocations: 51.36 kB / 446.6 MB, free: 12.2 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.1118, allocations: 0 / 446.6 MB, free: 12.2 MB / 298.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001085/0.1119, allocations: 77.55 kB / 446.6 MB, free: 12.12 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.303e-05/0.112, allocations: 4 kB / 446.6 MB, free: 12.12 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.24e-06/0.112, allocations: 0 / 446.6 MB, free: 12.12 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.546e-05/0.112, allocations: 4 kB / 446.6 MB, free: 12.11 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.404e-05/0.112, allocations: 8 kB / 446.6 MB, free: 12.11 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.233e-06/0.1121, allocations: 3.984 kB / 446.7 MB, free: 12.1 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.228e-05/0.1121, allocations: 15.91 kB / 446.7 MB, free: 12.09 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.34e-06/0.1121, allocations: 0 / 446.7 MB, free: 12.09 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 5.862e-05/0.1122, allocations: 133.6 kB / 446.8 MB, free: 11.95 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.749e-05/0.1122, allocations: 45.69 kB / 446.8 MB, free: 11.89 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.581e-05/0.1123, allocations: 4.25 kB / 446.8 MB, free: 11.89 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.754e-06/0.1123, allocations: 0 / 446.8 MB, free: 11.89 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.687e-06/0.1123, allocations: 4 kB / 446.9 MB, free: 11.88 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.628e-06/0.1123, allocations: 3.984 kB / 446.9 MB, free: 11.88 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001319/0.1124, allocations: 169.5 kB / 447 MB, free: 11.66 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.093e-06/0.1124, allocations: 0 / 447 MB, free: 11.66 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.398e-05/0.1125, allocations: 11.98 kB / 447 MB, free: 11.65 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.124e-06/0.1125, allocations: 8 kB / 447 MB, free: 11.64 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.462e-06/0.1125, allocations: 0 / 447 MB, free: 11.64 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.252e-06/0.1125, allocations: 0 / 447 MB, free: 11.64 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.01e-07/0.1125, allocations: 0 / 447 MB, free: 11.64 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000143/0.1127, allocations: 180.6 kB / 447.2 MB, free: 11.45 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.748e-05/0.1127, allocations: 93 kB / 447.3 MB, free: 11.34 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.278e-05/0.1127, allocations: 0 / 447.3 MB, free: 11.34 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.36e-05/0.1128, allocations: 4 kB / 447.3 MB, free: 11.34 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.048e-05/0.1128, allocations: 7.984 kB / 447.3 MB, free: 11.33 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.767e-06/0.1129, allocations: 0 / 447.3 MB, free: 11.33 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.99e-05/0.1129, allocations: 99.27 kB / 447.4 MB, free: 11.23 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.072e-06/0.1129, allocations: 0 / 447.4 MB, free: 11.23 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002078/0.1131, allocations: 11.94 kB / 447.4 MB, free: 11.22 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 9.293e-05/0.1132, allocations: 95.25 kB / 447.5 MB, free: 11.12 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001388/0.1134, allocations: 39.91 kB / 447.6 MB, free: 11.08 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.504e-06/0.1134, allocations: 3.938 kB / 447.6 MB, free: 11.07 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.14e-05/0.1134, allocations: 4 kB / 447.6 MB, free: 11.07 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003622/0.1138, allocations: 31.89 kB / 447.6 MB, free: 11.04 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002847/0.1141, allocations: 195.5 kB / 447.8 MB, free: 10.81 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001369/0.1142, allocations: 0.6887 MB / 448.5 MB, free: 10.09 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.347e-05/0.1143, allocations: 11.44 kB / 448.5 MB, free: 10.08 MB / 298.7 MB Notification: Performance of SimCode: time 2.2e-07/0.1143, allocations: 0 / 448.5 MB, free: 10.08 MB / 298.7 MB Notification: Performance of Templates: time 0.00176/0.116, allocations: 0.6723 MB / 449.2 MB, free: 9.41 MB / 298.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2 --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches