Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_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_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_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.0009074/0.0009075, allocations: 171.9 kB / 16.8 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.564/1.564, allocations: 205.4 MB / 223 MB, free: 9.016 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.00074/0.0007402, allocations: 93.02 kB / 271.3 MB, free: 8.27 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.0807/0.0807, allocations: 12.6 MB / 332.2 MB, free: 11.27 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000484/0.0004843, allocations: 20 kB / 393.2 MB, free: 65.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09933/0.09983, allocations: 50.36 MB / 443.6 MB, free: 15.54 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3238/0.4237, allocations: 77.91 MB / 0.5093 GB, free: 13.56 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002068/0.4239, allocations: 78.92 kB / 0.5094 GB, free: 13.55 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.002482/0.4264, allocations: 1.12 MB / 0.5104 GB, free: 13.1 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.405e-06/0.4264, allocations: 3.938 kB / 0.5105 GB, free: 13.09 MB / 330.7 MB Notification: Performance of Transformations before backend: time 8.676e-06/0.4265, allocations: 0 / 0.5105 GB, free: 13.09 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.0002645/0.4267, allocations: 360.1 kB / 0.5108 GB, free: 12.72 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.616e-05/0.4268, allocations: 11.67 kB / 0.5108 GB, free: 12.71 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.39e-05/0.4268, allocations: 12.59 kB / 0.5108 GB, free: 12.71 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001422/0.427, allocations: 192.8 kB / 0.511 GB, free: 12.49 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.003e-05/0.427, allocations: 7.844 kB / 0.511 GB, free: 12.49 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.719e-06/0.427, allocations: 4.312 kB / 0.511 GB, free: 12.49 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002245/0.4272, allocations: 110.9 kB / 0.5111 GB, free: 12.41 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.043e-05/0.4272, allocations: 8.125 kB / 0.5111 GB, free: 12.4 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.077e-05/0.4273, allocations: 11.09 kB / 0.5111 GB, free: 12.4 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.518e-06/0.4273, allocations: 0 / 0.5111 GB, free: 12.4 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.627e-05/0.4273, allocations: 23.11 kB / 0.5112 GB, free: 12.39 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002633/0.4276, allocations: 264.3 kB / 0.5114 GB, free: 12.11 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001603/0.4278, allocations: 141.4 kB / 0.5115 GB, free: 11.96 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.273e-05/0.4278, allocations: 32.42 kB / 0.5116 GB, free: 11.94 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.86e-05/0.4279, allocations: 0 / 0.5116 GB, free: 11.94 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.167e-05/0.4279, allocations: 37.62 kB / 0.5116 GB, free: 11.89 MB / 330.7 MB Notification: Performance of pre-optimization done (n=4): time 9.41e-07/0.4279, allocations: 0 / 0.5116 GB, free: 11.89 MB / 330.7 MB Notification: Performance of matching and sorting (n=4): time 0.0002352/0.4281, allocations: 87.28 kB / 0.5117 GB, free: 11.84 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.789e-05/0.4282, allocations: 84.92 kB / 0.5118 GB, free: 11.75 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001064/0.4283, allocations: 136.1 kB / 0.5119 GB, free: 11.63 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.052e-05/0.4283, allocations: 25.7 kB / 0.5119 GB, free: 11.6 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.365e-05/0.4284, allocations: 83.58 kB / 0.512 GB, free: 11.52 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.913e-05/0.4284, allocations: 7.75 kB / 0.512 GB, free: 11.52 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.216e-06/0.4284, allocations: 0 / 0.512 GB, free: 11.52 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 7.798e-05/0.4285, allocations: 318.7 kB / 0.5123 GB, free: 11.2 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.732e-05/0.4285, allocations: 7.812 kB / 0.5123 GB, free: 11.2 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.231e-05/0.4286, allocations: 42.8 kB / 0.5124 GB, free: 11.16 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.556e-05/0.4287, allocations: 46.14 kB / 0.5124 GB, free: 11.12 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.4287, allocations: 4 kB / 0.5124 GB, free: 11.11 MB / 330.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001107/0.4288, allocations: 72.39 kB / 0.5125 GB, free: 11.07 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.702e-05/0.4288, allocations: 3.844 kB / 0.5125 GB, free: 11.07 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.56e-06/0.4288, allocations: 3.844 kB / 0.5125 GB, free: 11.07 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.684e-05/0.4289, allocations: 0 / 0.5125 GB, free: 11.07 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.171e-05/0.4289, allocations: 7.688 kB / 0.5125 GB, free: 11.07 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.895e-06/0.4289, allocations: 15.81 kB / 0.5125 GB, free: 11.05 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.144e-05/0.429, allocations: 10.98 kB / 0.5125 GB, free: 11.05 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.553e-06/0.429, allocations: 0 / 0.5125 GB, free: 11.05 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 6.785e-05/0.429, allocations: 121.2 kB / 0.5126 GB, free: 10.93 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.672e-05/0.4291, allocations: 49.16 kB / 0.5127 GB, free: 10.89 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.021e-05/0.4291, allocations: 11.88 kB / 0.5127 GB, free: 10.88 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.064e-06/0.4292, allocations: 0 / 0.5127 GB, free: 10.88 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.42e-06/0.4292, allocations: 0 / 0.5127 GB, free: 10.88 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.216e-06/0.4292, allocations: 7.875 kB / 0.5127 GB, free: 10.88 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001316/0.4293, allocations: 172 kB / 0.5129 GB, free: 10.68 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.342e-06/0.4293, allocations: 0 / 0.5129 GB, free: 10.68 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.152e-05/0.4294, allocations: 15.67 kB / 0.5129 GB, free: 10.67 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.164e-06/0.4294, allocations: 3.938 kB / 0.5129 GB, free: 10.67 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.494e-06/0.4294, allocations: 336 / 0.5129 GB, free: 10.67 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.182e-06/0.4294, allocations: 0 / 0.5129 GB, free: 10.67 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.4294, allocations: 0 / 0.5129 GB, free: 10.67 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001393/0.4295, allocations: 181.9 kB / 0.5131 GB, free: 10.51 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.954e-05/0.4296, allocations: 88.81 kB / 0.5132 GB, free: 10.41 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.472e-05/0.4296, allocations: 0 / 0.5132 GB, free: 10.41 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.597e-05/0.4297, allocations: 3.844 kB / 0.5132 GB, free: 10.41 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.771e-05/0.4298, allocations: 3.562 kB / 0.5132 GB, free: 10.41 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.97e-06/0.4298, allocations: 7.094 kB / 0.5132 GB, free: 10.41 MB / 330.7 MB Notification: Performance of sorting global known variables: time 4.946e-05/0.4298, allocations: 109.9 kB / 0.5133 GB, free: 10.32 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4298, allocations: 0 / 0.5133 GB, free: 10.32 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002172/0.43, allocations: 7.688 kB / 0.5133 GB, free: 10.32 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 8.651e-05/0.4301, allocations: 94.72 kB / 0.5134 GB, free: 10.22 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001158/0.4303, allocations: 26.36 kB / 0.5134 GB, free: 10.22 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.945e-06/0.4303, allocations: 3.844 kB / 0.5134 GB, free: 10.22 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 3.069e-05/0.4303, allocations: 23.39 kB / 0.5134 GB, free: 10.2 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003047/0.4306, allocations: 23.28 kB / 0.5134 GB, free: 10.2 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002643/0.4309, allocations: 163.1 kB / 0.5136 GB, free: 10.05 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001246/0.431, allocations: 0.6922 MB / 0.5143 GB, free: 9.34 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 2.309e-05/0.4311, allocations: 3.75 kB / 0.5143 GB, free: 9.34 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.986e-05/0.4311, allocations: 7.438 kB / 0.5143 GB, free: 9.336 MB / 330.7 MB Notification: Performance of SimCode: time 2.11e-07/0.4311, allocations: 3.844 kB / 0.5143 GB, free: 9.336 MB / 330.7 MB Notification: Performance of Templates: time 0.002219/0.4333, allocations: 441.2 kB / 0.5147 GB, free: 9.121 MB / 330.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_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_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches