Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Blocks.LimResetIntegrator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(ModelicaTest.Blocks.LimResetIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Blocks.LimResetIntegrator") translateModel(ModelicaTest.Blocks.LimResetIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Blocks.LimResetIntegrator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001132/0.001131, allocations: 197.2 kB / 16.79 MB, free: 5.031 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.266/1.266, allocations: 226.5 MB / 244.1 MB, free: 8.23 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007828/0.0007829, allocations: 96.66 kB / 296.1 MB, free: 6.906 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2964/0.2964, allocations: 44.82 MB / 393 MB, free: 35.73 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003954/0.0003955, allocations: 11.98 kB / 465.9 MB, free: 12.72 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2974/0.2978, allocations: 62.95 MB / 0.5165 GB, free: 37.06 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1026/0.4005, allocations: 88.37 MB / 0.6028 GB, free: 1.031 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002178/0.4007, allocations: 63.97 kB / 0.6028 GB, free: 0.9688 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008873/0.4096, allocations: 3.012 MB / 0.6058 GB, free: 13.95 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.924e-06/0.4097, allocations: 4 kB / 0.6058 GB, free: 13.95 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.088e-05/0.4097, allocations: 4 kB / 0.6058 GB, free: 13.95 MB / 426.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.0006243/0.4103, allocations: 435.1 kB / 0.6062 GB, free: 13.47 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.57e-05/0.4103, allocations: 12.03 kB / 0.6062 GB, free: 13.46 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.009e-05/0.4104, allocations: 12.83 kB / 0.6062 GB, free: 13.45 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002696/0.4107, allocations: 216 kB / 0.6064 GB, free: 13.2 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.905e-05/0.4107, allocations: 4.375 kB / 0.6064 GB, free: 13.19 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.32e-05/0.4108, allocations: 12.38 kB / 0.6064 GB, free: 13.18 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002642/0.411, allocations: 107.9 kB / 0.6065 GB, free: 13.07 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.935e-06/0.411, allocations: 192 / 0.6065 GB, free: 13.07 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.756e-05/0.4111, allocations: 11.94 kB / 0.6065 GB, free: 13.06 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.48e-06/0.4111, allocations: 3.984 kB / 0.6066 GB, free: 13.05 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001544/0.4112, allocations: 51.97 kB / 0.6066 GB, free: 13 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005788/0.4118, allocations: 380.5 kB / 0.607 GB, free: 12.58 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003333/0.4122, allocations: 126.4 kB / 0.6071 GB, free: 12.45 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001117/0.4123, allocations: 40.92 kB / 0.6071 GB, free: 12.41 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.078e-05/0.4123, allocations: 0 / 0.6071 GB, free: 12.41 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002649/0.4126, allocations: 107.3 kB / 0.6072 GB, free: 12.29 MB / 426.7 MB Notification: Performance of pre-optimization done (n=7): time 1.353e-06/0.4126, allocations: 3.938 kB / 0.6072 GB, free: 12.29 MB / 426.7 MB Notification: Performance of matching and sorting (n=7): time 0.0004693/0.4131, allocations: 157.4 kB / 0.6074 GB, free: 12.12 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.706e-05/0.4131, allocations: 55.41 kB / 0.6074 GB, free: 12.06 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001271/0.4132, allocations: 155.4 kB / 0.6076 GB, free: 11.9 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 2.193e-05/0.4133, allocations: 33.7 kB / 0.6076 GB, free: 11.86 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.438e-05/0.4133, allocations: 96.12 kB / 0.6077 GB, free: 11.77 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.67e-05/0.4134, allocations: 23.8 kB / 0.6077 GB, free: 11.74 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.422e-06/0.4134, allocations: 4 kB / 0.6077 GB, free: 11.74 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001468/0.4135, allocations: 318.8 kB / 0.608 GB, free: 11.42 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001307/0.4137, allocations: 35.98 kB / 0.6081 GB, free: 11.38 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001272/0.4138, allocations: 53.69 kB / 0.6081 GB, free: 11.32 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002234/0.414, allocations: 93.59 kB / 0.6082 GB, free: 11.23 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.824e-06/0.4141, allocations: 0 / 0.6082 GB, free: 11.23 MB / 426.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002822/0.4143, allocations: 129.5 kB / 0.6083 GB, free: 11.09 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.474e-05/0.4144, allocations: 4 kB / 0.6083 GB, free: 11.09 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.619e-06/0.4144, allocations: 0 / 0.6083 GB, free: 11.09 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.387e-05/0.4144, allocations: 3.938 kB / 0.6083 GB, free: 11.09 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.816e-05/0.4145, allocations: 19.98 kB / 0.6084 GB, free: 11.07 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.059e-06/0.4145, allocations: 4.031 kB / 0.6084 GB, free: 11.06 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.833e-05/0.4146, allocations: 23.98 kB / 0.6084 GB, free: 11.04 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.486e-06/0.4146, allocations: 4.281 kB / 0.6084 GB, free: 11.04 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,$whenCondition2,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,$PRE.change.u,change.u,change.y) * 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 8.699e-05/0.4147, allocations: 121.8 kB / 0.6085 GB, free: 10.91 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.749e-05/0.4147, allocations: 7.906 kB / 0.6085 GB, free: 10.9 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.022e-05/0.4148, allocations: 24.59 kB / 0.6085 GB, free: 10.87 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.494e-06/0.4148, allocations: 4 kB / 0.6085 GB, free: 10.87 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.958e-06/0.4148, allocations: 0 / 0.6085 GB, free: 10.87 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.856e-06/0.4148, allocations: 0 / 0.6085 GB, free: 10.87 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005104/0.4153, allocations: 402.7 kB / 0.6089 GB, free: 10.42 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.906e-06/0.4153, allocations: 0 / 0.6089 GB, free: 10.42 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.281e-05/0.4154, allocations: 15.94 kB / 0.6089 GB, free: 10.4 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.699e-06/0.4155, allocations: 3.984 kB / 0.6089 GB, free: 10.4 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.045e-05/0.4155, allocations: 3.938 kB / 0.6089 GB, free: 10.39 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.383e-06/0.4155, allocations: 80 / 0.609 GB, free: 10.39 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.27e-06/0.4155, allocations: 7.984 kB / 0.609 GB, free: 10.39 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004402/0.4159, allocations: 263.3 kB / 0.6092 GB, free: 10.11 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.537e-05/0.416, allocations: 81.02 kB / 0.6093 GB, free: 10.02 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.168e-05/0.416, allocations: 8.031 kB / 0.6093 GB, free: 10.01 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001369/0.4162, allocations: 23.97 kB / 0.6093 GB, free: 9.984 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.019e-05/0.4162, allocations: 11.97 kB / 0.6093 GB, free: 9.973 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.823e-06/0.4162, allocations: 4 kB / 0.6093 GB, free: 9.969 MB / 426.7 MB Notification: Performance of sorting global known variables: time 7.68e-05/0.4163, allocations: 118.9 kB / 0.6094 GB, free: 9.855 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.4163, allocations: 3.938 kB / 0.6094 GB, free: 9.852 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0002207/0.4165, allocations: 12 kB / 0.6095 GB, free: 9.84 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (integrator.y) * Number of discrete variables: 5 (change.y,$whenCondition2,$whenCondition1,booleanPulse.pulseStart,change.u) * Number of discrete states: 1 (change.u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0001149/0.4167, allocations: 103.2 kB / 0.6096 GB, free: 9.727 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0002735/0.4169, allocations: 84.83 kB / 0.6096 GB, free: 9.645 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.417, allocations: 0 / 0.6096 GB, free: 9.645 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001387/0.4171, allocations: 51.91 kB / 0.6097 GB, free: 9.594 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000329/0.4174, allocations: 23.98 kB / 0.6097 GB, free: 9.57 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004948/0.4179, allocations: 261 kB / 0.61 GB, free: 9.285 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002308/0.4182, allocations: 0.6965 MB / 0.6106 GB, free: 8.562 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.726e-05/0.4182, allocations: 15.42 kB / 0.6107 GB, free: 8.551 MB / 426.7 MB Notification: Performance of SimCode: time 3.61e-07/0.4182, allocations: 0 / 0.6107 GB, free: 8.551 MB / 426.7 MB Notification: Performance of Templates: time 0.002481/0.4207, allocations: 1.334 MB / 0.612 GB, free: 7.215 MB / 426.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Blocks.LimResetIntegrator.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Blocks.LimResetIntegrator.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Blocks.LimResetIntegrator.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Blocks.LimResetIntegrator.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Blocks.LimResetIntegrator.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Blocks.LimResetIntegrator --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Blocks.LimResetIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Blocks.LimResetIntegrator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/LimResetIntegrator/LimResetIntegrator.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Blocks.LimResetIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches