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.002226/0.002226, allocations: 185.4 kB / 16.44 MB, free: 5.672 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.967/1.967, allocations: 205.4 MB / 222.6 MB, free: 9.137 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.001148/0.001148, allocations: 77.62 kB / 270.9 MB, free: 8.379 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.1059/0.1059, allocations: 12.58 MB / 331.8 MB, free: 11.4 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005592/0.0005591, allocations: 16 kB / 392 MB, free: 66.9 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08991/0.09051, allocations: 50.36 MB / 442.3 MB, free: 16.49 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4316/0.5222, allocations: 77.87 MB / 0.508 GB, free: 12.77 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000261/0.5225, allocations: 75.92 kB / 0.5081 GB, free: 12.77 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.003655/0.5262, allocations: 1.129 MB / 0.5092 GB, free: 12.4 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.883e-06/0.5262, allocations: 0 / 0.5092 GB, free: 12.4 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.047e-05/0.5262, allocations: 3.656 kB / 0.5092 GB, free: 12.4 MB / 330.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.0003275/0.5266, allocations: 351.7 kB / 0.5095 GB, free: 12.04 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.884e-05/0.5266, allocations: 15.34 kB / 0.5096 GB, free: 12.04 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.74e-05/0.5267, allocations: 11.75 kB / 0.5096 GB, free: 12.03 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001686/0.5268, allocations: 187.9 kB / 0.5097 GB, free: 11.82 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.141e-05/0.5269, allocations: 0 / 0.5097 GB, free: 11.82 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.348e-05/0.5269, allocations: 7.766 kB / 0.5097 GB, free: 11.82 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002976/0.5272, allocations: 120 kB / 0.5099 GB, free: 11.75 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.336e-06/0.5272, allocations: 4 kB / 0.5099 GB, free: 11.74 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.038e-05/0.5272, allocations: 0 / 0.5099 GB, free: 11.74 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.556e-06/0.5272, allocations: 3.844 kB / 0.5099 GB, free: 11.74 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001184/0.5274, allocations: 20.17 kB / 0.5099 GB, free: 11.74 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003277/0.5277, allocations: 279.6 kB / 0.5102 GB, free: 11.46 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002055/0.5279, allocations: 135.9 kB / 0.5103 GB, free: 11.31 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.922e-05/0.528, allocations: 6.547 kB / 0.5103 GB, free: 11.31 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.757e-05/0.528, allocations: 37.12 kB / 0.5103 GB, free: 11.27 MB / 330.7 MB Notification: Performance of pre-optimization done (n=4): time 2.495e-06/0.528, allocations: 4 kB / 0.5103 GB, free: 11.27 MB / 330.7 MB Notification: Performance of matching and sorting (n=4): time 0.0003074/0.5283, allocations: 78.38 kB / 0.5104 GB, free: 11.23 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.048e-05/0.5284, allocations: 81.05 kB / 0.5105 GB, free: 11.14 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001027/0.5285, allocations: 125.7 kB / 0.5106 GB, free: 11.04 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.043e-05/0.5285, allocations: 25.7 kB / 0.5106 GB, free: 11.01 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.645e-05/0.5286, allocations: 157.3 kB / 0.5108 GB, free: 10.86 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.265e-05/0.5286, allocations: 4 kB / 0.5108 GB, free: 10.85 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.387e-06/0.5286, allocations: 0 / 0.5108 GB, free: 10.85 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.496e-05/0.5287, allocations: 320.7 kB / 0.5111 GB, free: 10.54 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.967e-05/0.5287, allocations: 7.438 kB / 0.5111 GB, free: 10.54 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.758e-05/0.5288, allocations: 35.62 kB / 0.5111 GB, free: 10.51 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.413e-05/0.5289, allocations: 18.53 kB / 0.5111 GB, free: 10.5 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.416e-06/0.5289, allocations: 3.953 kB / 0.5112 GB, free: 10.5 MB / 330.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001722/0.5291, allocations: 71.47 kB / 0.5112 GB, free: 10.46 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.57e-05/0.5291, allocations: 7.938 kB / 0.5112 GB, free: 10.45 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.67e-06/0.5291, allocations: 3.719 kB / 0.5112 GB, free: 10.45 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.377e-05/0.5292, allocations: 0 / 0.5112 GB, free: 10.45 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.127e-05/0.5292, allocations: 10.19 kB / 0.5112 GB, free: 10.45 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.504e-06/0.5293, allocations: 3.812 kB / 0.5112 GB, free: 10.45 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.866e-05/0.5293, allocations: 0 / 0.5112 GB, free: 10.45 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.285e-06/0.5293, allocations: 7.031 kB / 0.5113 GB, free: 10.45 MB / 330.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 8.295e-05/0.5295, allocations: 120 kB / 0.5114 GB, free: 10.34 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.234e-05/0.5295, allocations: 62.7 kB / 0.5114 GB, free: 10.29 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.677e-05/0.5296, allocations: 11.84 kB / 0.5114 GB, free: 10.27 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.025e-06/0.5296, allocations: 0 / 0.5114 GB, free: 10.27 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.5296, allocations: 0 / 0.5114 GB, free: 10.27 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.057e-06/0.5296, allocations: 6.719 kB / 0.5114 GB, free: 10.27 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001568/0.5298, allocations: 165.7 kB / 0.5116 GB, free: 10.08 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.873e-06/0.5298, allocations: 0 / 0.5116 GB, free: 10.08 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.642e-05/0.5299, allocations: 14.55 kB / 0.5116 GB, free: 10.08 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.357e-06/0.5299, allocations: 3.844 kB / 0.5116 GB, free: 10.08 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.416e-06/0.5299, allocations: 0 / 0.5116 GB, free: 10.08 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.114e-06/0.5299, allocations: 0 / 0.5116 GB, free: 10.08 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/0.53, allocations: 4 kB / 0.5116 GB, free: 10.07 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002037/0.5302, allocations: 188.2 kB / 0.5118 GB, free: 9.902 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.153e-05/0.5302, allocations: 88.84 kB / 0.5119 GB, free: 9.801 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.987e-05/0.5303, allocations: 7.125 kB / 0.5119 GB, free: 9.801 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.237e-05/0.5304, allocations: 7.844 kB / 0.5119 GB, free: 9.797 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.228e-05/0.5304, allocations: 3.844 kB / 0.5119 GB, free: 9.797 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.939e-06/0.5304, allocations: 0 / 0.5119 GB, free: 9.797 MB / 330.7 MB Notification: Performance of sorting global known variables: time 6.683e-05/0.5305, allocations: 105.4 kB / 0.512 GB, free: 9.715 MB / 330.7 MB Notification: Performance of sort global known variables: time 3.5e-07/0.5305, allocations: 0 / 0.512 GB, free: 9.715 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002713/0.5308, allocations: 3.812 kB / 0.512 GB, free: 9.715 MB / 330.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.855e-05/0.5309, allocations: 90.62 kB / 0.5121 GB, free: 9.629 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001859/0.5311, allocations: 42.58 kB / 0.5121 GB, free: 9.617 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.5311, allocations: 0 / 0.5121 GB, free: 9.617 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 5.952e-05/0.5311, allocations: 11.05 kB / 0.5121 GB, free: 9.613 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000287/0.5314, allocations: 28.03 kB / 0.5122 GB, free: 9.598 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003479/0.5318, allocations: 197.5 kB / 0.5124 GB, free: 9.406 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001508/0.532, allocations: 0.6958 MB / 0.513 GB, free: 8.699 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.621e-05/0.532, allocations: 11.31 kB / 0.5131 GB, free: 8.695 MB / 330.7 MB Notification: Performance of SimCode: time 6.41e-07/0.532, allocations: 0 / 0.5131 GB, free: 8.695 MB / 330.7 MB Notification: Performance of Templates: time 0.002232/0.5343, allocations: 0.6703 MB / 0.5137 GB, free: 8.363 MB / 330.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/jenkins1/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