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.00224/0.00224, allocations: 186.5 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.915/1.915, 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.001146/0.001146, allocations: 92.52 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.1058/0.1058, allocations: 12.59 MB / 331.8 MB, free: 11.4 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005884/0.0005886, allocations: 12 kB / 392 MB, free: 66.9 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08904/0.08966, allocations: 50.37 MB / 442.3 MB, free: 16.49 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4327/0.5224, allocations: 78.5 MB / 0.5086 GB, free: 12.85 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002646/0.5227, allocations: 74.39 kB / 0.5087 GB, free: 12.85 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.005405/0.5282, allocations: 1.417 MB / 0.5101 GB, free: 12.36 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.004e-06/0.5282, allocations: 0 / 0.5101 GB, free: 12.36 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.111e-05/0.5282, allocations: 3.844 kB / 0.5101 GB, free: 12.36 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.0004069/0.5286, allocations: 372.5 kB / 0.5104 GB, free: 11.98 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.984e-05/0.5287, allocations: 11.69 kB / 0.5105 GB, free: 11.97 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.989e-05/0.5287, allocations: 7.875 kB / 0.5105 GB, free: 11.97 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001735/0.5289, allocations: 186.3 kB / 0.5106 GB, free: 11.76 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.446e-05/0.529, allocations: 7.266 kB / 0.5106 GB, free: 11.75 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.68e-05/0.529, allocations: 3.75 kB / 0.5107 GB, free: 11.75 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000317/0.5293, allocations: 121.5 kB / 0.5108 GB, free: 11.67 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.426e-06/0.5293, allocations: 0 / 0.5108 GB, free: 11.67 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.232e-05/0.5294, allocations: 3.5 kB / 0.5108 GB, free: 11.67 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.152e-06/0.5294, allocations: 3.984 kB / 0.5108 GB, free: 11.66 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001283/0.5295, allocations: 22.98 kB / 0.5108 GB, free: 11.66 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003777/0.5299, allocations: 282.1 kB / 0.5111 GB, free: 11.36 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002195/0.5301, allocations: 132.7 kB / 0.5112 GB, free: 11.22 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.194e-05/0.5302, allocations: 3.688 kB / 0.5112 GB, free: 11.22 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.818e-05/0.5302, allocations: 38.5 kB / 0.5112 GB, free: 11.17 MB / 330.7 MB Notification: Performance of pre-optimization done (n=4): time 2.104e-06/0.5302, allocations: 0 / 0.5112 GB, free: 11.17 MB / 330.7 MB Notification: Performance of matching and sorting (n=4): time 0.0003386/0.5306, allocations: 79.36 kB / 0.5113 GB, free: 11.13 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.372e-05/0.5306, allocations: 91.53 kB / 0.5114 GB, free: 11.03 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001189/0.5307, allocations: 128.1 kB / 0.5115 GB, free: 10.92 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.077e-05/0.5308, allocations: 25.7 kB / 0.5115 GB, free: 10.89 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.072e-05/0.5308, allocations: 157.7 kB / 0.5117 GB, free: 10.74 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.677e-05/0.5308, allocations: 7.844 kB / 0.5117 GB, free: 10.73 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.28e-06/0.5309, allocations: 0 / 0.5117 GB, free: 10.73 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.554e-05/0.5309, allocations: 314.8 kB / 0.512 GB, free: 10.42 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.58e-05/0.531, allocations: 14.95 kB / 0.512 GB, free: 10.41 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.326e-05/0.5311, allocations: 38.22 kB / 0.5121 GB, free: 10.38 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.369e-05/0.5312, allocations: 11.61 kB / 0.5121 GB, free: 10.38 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.088e-06/0.5312, allocations: 3.953 kB / 0.5121 GB, free: 10.37 MB / 330.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001922/0.5314, allocations: 79.2 kB / 0.5121 GB, free: 10.32 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.693e-05/0.5314, allocations: 3.844 kB / 0.5121 GB, free: 10.32 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.803e-06/0.5314, allocations: 3.812 kB / 0.5121 GB, free: 10.32 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.543e-05/0.5315, allocations: 0 / 0.5121 GB, free: 10.32 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001056/0.5316, allocations: 7.531 kB / 0.5122 GB, free: 10.32 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.222e-06/0.5316, allocations: 0 / 0.5122 GB, free: 10.32 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.759e-05/0.5317, allocations: 11.02 kB / 0.5122 GB, free: 10.32 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.105e-05/0.5317, allocations: 7.75 kB / 0.5122 GB, free: 10.32 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.913e-05/0.5318, allocations: 120.8 kB / 0.5123 GB, free: 10.2 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.467e-05/0.5319, allocations: 56.55 kB / 0.5123 GB, free: 10.15 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.233e-05/0.532, allocations: 11.72 kB / 0.5124 GB, free: 10.14 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.747e-06/0.532, allocations: 3.938 kB / 0.5124 GB, free: 10.14 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.112e-06/0.532, allocations: 3.844 kB / 0.5124 GB, free: 10.14 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.997e-06/0.532, allocations: 0 / 0.5124 GB, free: 10.14 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001753/0.5322, allocations: 167.6 kB / 0.5125 GB, free: 9.938 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.314e-06/0.5322, allocations: 0 / 0.5125 GB, free: 9.938 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.832e-05/0.5323, allocations: 15.36 kB / 0.5125 GB, free: 9.934 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.669e-06/0.5323, allocations: 4 kB / 0.5125 GB, free: 9.93 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.033e-05/0.5323, allocations: 3.312 kB / 0.5125 GB, free: 9.93 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.066e-06/0.5323, allocations: 0 / 0.5125 GB, free: 9.93 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.19e-06/0.5324, allocations: 4.312 kB / 0.5125 GB, free: 9.93 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002379/0.5326, allocations: 191.9 kB / 0.5127 GB, free: 9.754 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.344e-05/0.5327, allocations: 89.34 kB / 0.5128 GB, free: 9.652 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.309e-05/0.5328, allocations: 3.984 kB / 0.5128 GB, free: 9.648 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.979e-05/0.5329, allocations: 6.469 kB / 0.5128 GB, free: 9.648 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.771e-05/0.5329, allocations: 0 / 0.5128 GB, free: 9.648 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.535e-06/0.5329, allocations: 3.906 kB / 0.5128 GB, free: 9.648 MB / 330.7 MB Notification: Performance of sorting global known variables: time 8.21e-05/0.533, allocations: 107.7 kB / 0.5129 GB, free: 9.566 MB / 330.7 MB Notification: Performance of sort global known variables: time 3.8e-07/0.533, allocations: 0 / 0.5129 GB, free: 9.566 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002937/0.5333, allocations: 3.656 kB / 0.5129 GB, free: 9.566 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 0.0001002/0.5334, allocations: 102.2 kB / 0.513 GB, free: 9.477 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002054/0.5337, allocations: 38.25 kB / 0.5131 GB, free: 9.461 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.5337, allocations: 3.562 kB / 0.5131 GB, free: 9.461 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 6.288e-05/0.5337, allocations: 11.36 kB / 0.5131 GB, free: 9.457 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003058/0.5341, allocations: 35.48 kB / 0.5131 GB, free: 9.438 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004111/0.5345, allocations: 211.2 kB / 0.5133 GB, free: 9.238 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000155/0.5347, allocations: 0.7034 MB / 0.514 GB, free: 8.527 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.508e-05/0.5347, allocations: 11.44 kB / 0.514 GB, free: 8.516 MB / 330.7 MB Notification: Performance of SimCode: time 9.72e-07/0.5347, allocations: 0 / 0.514 GB, free: 8.516 MB / 330.7 MB Notification: Performance of Templates: time 0.00237/0.5371, allocations: 0.7279 MB / 0.5147 GB, free: 8.16 MB / 330.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/jenkins1/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