Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample3.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.Sample3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|feedback.y|hold.y|sample1.y|sample2.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample3") translateModel(Modelica_Synchronous.Examples.Elementary.RealSignals.Sample3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|feedback.y|hold.y|sample1.y|sample2.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001556/0.001556, allocations: 186 kB / 16.44 MB, free: 5.691 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.952/1.952, allocations: 205.4 MB / 222.6 MB, free: 9.125 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.00114/0.001139, allocations: 89.55 kB / 270.9 MB, free: 8.375 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.1009/0.1009, allocations: 12.58 MB / 331.8 MB, free: 11.41 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000589/0.0005891, allocations: 19.98 kB / 392 MB, free: 66.9 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08832/0.08894, allocations: 50.36 MB / 442.3 MB, free: 16.49 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.42/0.509, allocations: 78.21 MB / 0.5083 GB, free: 12.73 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002661/0.5093, allocations: 74.41 kB / 0.5084 GB, free: 12.73 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004706/0.514, allocations: 1.382 MB / 0.5098 GB, free: 12.28 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.993e-06/0.5141, allocations: 0 / 0.5098 GB, free: 12.28 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.353e-05/0.5141, allocations: 3.844 kB / 0.5098 GB, free: 12.28 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0003844/0.5145, allocations: 375.5 kB / 0.5101 GB, free: 11.9 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.828e-05/0.5146, allocations: 11.66 kB / 0.5101 GB, free: 11.89 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.92e-05/0.5146, allocations: 15.59 kB / 0.5102 GB, free: 11.89 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001743/0.5148, allocations: 189 kB / 0.5103 GB, free: 11.68 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.301e-05/0.5148, allocations: 3.875 kB / 0.5103 GB, free: 11.68 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.98e-05/0.5148, allocations: 11.02 kB / 0.5104 GB, free: 11.67 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003823/0.5152, allocations: 171.2 kB / 0.5105 GB, free: 11.57 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.468e-06/0.5153, allocations: 0 / 0.5105 GB, free: 11.57 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.304e-05/0.5153, allocations: 0 / 0.5105 GB, free: 11.57 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.464e-06/0.5153, allocations: 7.797 kB / 0.5105 GB, free: 11.56 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001618/0.5155, allocations: 41.58 kB / 0.5106 GB, free: 11.55 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004124/0.5159, allocations: 373.9 kB / 0.5109 GB, free: 11.17 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003026/0.5162, allocations: 117.3 kB / 0.511 GB, free: 11.08 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.682e-05/0.5163, allocations: 7.812 kB / 0.511 GB, free: 11.08 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.847e-05/0.5163, allocations: 38.17 kB / 0.5111 GB, free: 11.04 MB / 330.7 MB Notification: Performance of pre-optimization done (n=10): time 1.803e-06/0.5163, allocations: 0 / 0.5111 GB, free: 11.04 MB / 330.7 MB Notification: Performance of matching and sorting (n=10): time 0.0004205/0.5167, allocations: 126.7 kB / 0.5112 GB, free: 10.98 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.104e-05/0.5168, allocations: 114.1 kB / 0.5113 GB, free: 10.86 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001153/0.5169, allocations: 123.9 kB / 0.5114 GB, free: 10.75 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.187e-05/0.5169, allocations: 25.7 kB / 0.5114 GB, free: 10.72 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.15e-05/0.517, allocations: 166.5 kB / 0.5116 GB, free: 10.57 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.839e-05/0.517, allocations: 7.422 kB / 0.5116 GB, free: 10.56 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.12e-06/0.517, allocations: 0 / 0.5116 GB, free: 10.56 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.732e-05/0.5171, allocations: 325.8 kB / 0.5119 GB, free: 10.24 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.438e-05/0.5172, allocations: 14.11 kB / 0.5119 GB, free: 10.24 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.515e-05/0.5173, allocations: 69.78 kB / 0.512 GB, free: 10.16 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.858e-05/0.5174, allocations: 30.17 kB / 0.512 GB, free: 10.15 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.5174, allocations: 0 / 0.512 GB, free: 10.15 MB / 330.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002408/0.5177, allocations: 113.7 kB / 0.5121 GB, free: 10.09 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.636e-05/0.5177, allocations: 3.844 kB / 0.5121 GB, free: 10.09 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.053e-06/0.5177, allocations: 3.812 kB / 0.5121 GB, free: 10.09 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.926e-05/0.5177, allocations: 3.875 kB / 0.5122 GB, free: 10.09 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001182/0.5179, allocations: 19.36 kB / 0.5122 GB, free: 10.09 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.167e-06/0.5179, allocations: 8.062 kB / 0.5122 GB, free: 10.09 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.395e-05/0.518, allocations: 7.969 kB / 0.5122 GB, free: 10.08 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.165e-05/0.518, allocations: 6.688 kB / 0.5122 GB, free: 10.08 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * 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 (10): * Single equations (assignments): 10 * 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 9.42e-05/0.5181, allocations: 131.7 kB / 0.5123 GB, free: 9.957 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001554/0.5182, allocations: 81.83 kB / 0.5124 GB, free: 9.914 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.386e-05/0.5183, allocations: 15.5 kB / 0.5124 GB, free: 9.902 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.568e-06/0.5183, allocations: 0 / 0.5124 GB, free: 9.902 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.699e-06/0.5183, allocations: 0 / 0.5124 GB, free: 9.902 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.14e-06/0.5183, allocations: 3.812 kB / 0.5124 GB, free: 9.902 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002559/0.5186, allocations: 194.4 kB / 0.5126 GB, free: 9.688 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.655e-06/0.5186, allocations: 0 / 0.5126 GB, free: 9.688 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001315/0.5188, allocations: 20.42 kB / 0.5126 GB, free: 9.684 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.627e-06/0.5188, allocations: 3.906 kB / 0.5126 GB, free: 9.684 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.638e-06/0.5188, allocations: 0 / 0.5126 GB, free: 9.684 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.427e-06/0.5188, allocations: 3.812 kB / 0.5126 GB, free: 9.684 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.996e-06/0.5188, allocations: 0 / 0.5126 GB, free: 9.684 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004152/0.5192, allocations: 347.4 kB / 0.513 GB, free: 9.395 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.695e-05/0.5193, allocations: 96.2 kB / 0.513 GB, free: 9.289 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.147e-05/0.5194, allocations: 4.781 kB / 0.5131 GB, free: 9.289 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000136/0.5195, allocations: 11.28 kB / 0.5131 GB, free: 9.285 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.362e-05/0.5195, allocations: 3.984 kB / 0.5131 GB, free: 9.281 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.126e-06/0.5196, allocations: 3.875 kB / 0.5131 GB, free: 9.281 MB / 330.7 MB Notification: Performance of sorting global known variables: time 7.544e-05/0.5197, allocations: 104.6 kB / 0.5132 GB, free: 9.203 MB / 330.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.5197, allocations: 0 / 0.5132 GB, free: 9.203 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003563/0.52, allocations: 10.84 kB / 0.5132 GB, free: 9.203 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (10): * Single equations (assignments): 10 * 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.477e-05/0.5202, allocations: 102.6 kB / 0.5133 GB, free: 9.109 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.000234/0.5204, allocations: 58.45 kB / 0.5133 GB, free: 9.098 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.5204, allocations: 3.844 kB / 0.5133 GB, free: 9.098 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 6.381e-05/0.5205, allocations: 15.73 kB / 0.5134 GB, free: 9.09 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004024/0.5209, allocations: 45.7 kB / 0.5134 GB, free: 9.078 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004454/0.5214, allocations: 257.8 kB / 0.5136 GB, free: 8.852 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001654/0.5215, allocations: 0.7038 MB / 0.5143 GB, free: 8.141 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.58e-05/0.5216, allocations: 15.31 kB / 0.5143 GB, free: 8.129 MB / 330.7 MB Notification: Performance of SimCode: time 6.91e-07/0.5216, allocations: 96 / 0.5143 GB, free: 8.129 MB / 330.7 MB Notification: Performance of Templates: time 0.002703/0.5243, allocations: 0.8935 MB / 0.5152 GB, free: 7.684 MB / 330.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample3.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample3.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample3.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample3.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample3.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample3 --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample3.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.RealSignals.Sample3.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches