Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Blocks.LimResetIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator") translateModel(ModelicaTest.Blocks.LimResetIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001482/0.001482, allocations: 117.7 kB / 18.46 MB, free: 4.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002088/0.002088, allocations: 204.8 kB / 19.4 MB, free: 3.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.793/1.793, allocations: 227.4 MB / 247.6 MB, free: 10.46 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2393/0.2393, allocations: 46.1 MB / 344.9 MB, free: 11.49 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001952/0.001952, allocations: 75.88 kB / 482 MB, free: 4.07 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4139/0.4158, allocations: 62.44 MB / 0.5316 GB, free: 13.6 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.003014/0.4189, allocations: 1.636 MB / 0.5332 GB, free: 12.32 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00112/0.42, allocations: 0.5903 MB / 0.5338 GB, free: 11.86 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.724e-05/0.4202, allocations: 6.719 kB / 0.5338 GB, free: 11.85 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001377/0.4203, allocations: 11.86 kB / 0.5338 GB, free: 11.84 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.855e-05/0.4204, allocations: 18.11 kB / 0.5339 GB, free: 11.82 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003556/0.4207, allocations: 79.48 kB / 0.5339 GB, free: 11.77 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001851/0.4209, allocations: 121.5 kB / 0.534 GB, free: 11.69 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001362/0.4211, allocations: 24.8 kB / 0.5341 GB, free: 11.68 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.469e-05/0.4212, allocations: 45.56 kB / 0.5341 GB, free: 11.65 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.953e-05/0.4213, allocations: 44.53 kB / 0.5342 GB, free: 11.62 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.577e-05/0.4213, allocations: 7.75 kB / 0.5342 GB, free: 11.62 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.812e-05/0.4213, allocations: 7.594 kB / 0.5342 GB, free: 11.62 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.274e-05/0.4214, allocations: 26.39 kB / 0.5342 GB, free: 11.59 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 5.987e-05/0.4214, allocations: 41.61 kB / 0.5342 GB, free: 11.56 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001667/0.4216, allocations: 91 kB / 0.5343 GB, free: 11.5 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.049e-06/0.4216, allocations: 1.188 kB / 0.5343 GB, free: 11.5 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.4216, allocations: 0 / 0.5343 GB, free: 11.5 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.378e-06/0.4216, allocations: 0 / 0.5343 GB, free: 11.5 MB / 398.1 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.0006755/0.4223, allocations: 406.8 kB / 0.5347 GB, free: 11.09 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.322e-05/0.4224, allocations: 13.62 kB / 0.5347 GB, free: 11.09 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.71e-05/0.4224, allocations: 14.34 kB / 0.5347 GB, free: 11.08 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002943/0.4227, allocations: 212.4 kB / 0.5349 GB, free: 10.85 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.186e-05/0.4227, allocations: 8.5 kB / 0.5349 GB, free: 10.84 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.683e-05/0.4228, allocations: 5.875 kB / 0.535 GB, free: 10.84 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002864/0.4231, allocations: 103 kB / 0.5351 GB, free: 10.78 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.455e-06/0.4231, allocations: 4 kB / 0.5351 GB, free: 10.77 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.511e-05/0.4231, allocations: 5.375 kB / 0.5351 GB, free: 10.77 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.29e-06/0.4231, allocations: 1.375 kB / 0.5351 GB, free: 10.77 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001688/0.4233, allocations: 50.2 kB / 0.5351 GB, free: 10.75 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006768/0.424, allocations: 387.7 kB / 0.5355 GB, free: 10.38 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003471/0.4243, allocations: 104.1 kB / 0.5356 GB, free: 10.32 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001142/0.4245, allocations: 40.12 kB / 0.5356 GB, free: 10.3 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.39e-05/0.4245, allocations: 0 / 0.5356 GB, free: 10.3 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002335/0.4247, allocations: 92.36 kB / 0.5357 GB, free: 10.23 MB / 398.1 MB Notification: Performance of pre-optimization done (n=7): time 1.262e-06/0.4247, allocations: 4 kB / 0.5357 GB, free: 10.23 MB / 398.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004572/0.4252, allocations: 142.9 kB / 0.5358 GB, free: 10.15 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.782e-05/0.4253, allocations: 56.31 kB / 0.5359 GB, free: 10.08 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001408/0.4254, allocations: 155.2 kB / 0.536 GB, free: 9.953 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.957e-05/0.4254, allocations: 30.8 kB / 0.5361 GB, free: 9.918 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.351e-05/0.4255, allocations: 100.5 kB / 0.5362 GB, free: 9.82 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.416e-05/0.4255, allocations: 18.47 kB / 0.5362 GB, free: 9.805 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.886e-05/0.4256, allocations: 29.12 kB / 0.5362 GB, free: 9.777 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001247/0.4257, allocations: 321.4 kB / 0.5365 GB, free: 9.457 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001204/0.4259, allocations: 41.66 kB / 0.5366 GB, free: 9.438 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001249/0.426, allocations: 57.53 kB / 0.5366 GB, free: 9.398 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002033/0.4262, allocations: 75.56 kB / 0.5367 GB, free: 9.355 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.4262, allocations: 5.406 kB / 0.5367 GB, free: 9.352 MB / 398.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.000282/0.4265, allocations: 117.1 kB / 0.5368 GB, free: 9.285 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.031e-05/0.4265, allocations: 13.73 kB / 0.5368 GB, free: 9.277 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.037e-06/0.4265, allocations: 0 / 0.5368 GB, free: 9.277 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.458e-05/0.4266, allocations: 0.9375 kB / 0.5368 GB, free: 9.277 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001067/0.4267, allocations: 15.31 kB / 0.5368 GB, free: 9.273 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.678e-06/0.4267, allocations: 5.266 kB / 0.5368 GB, free: 9.27 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.949e-05/0.4268, allocations: 18.36 kB / 0.5369 GB, free: 9.262 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.456e-06/0.4268, allocations: 2.125 kB / 0.5369 GB, free: 9.262 MB / 398.1 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,change.u,$PRE.change.u,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,integrator.reset,$whenCondition2) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001092/0.4269, allocations: 126.3 kB / 0.537 GB, free: 9.133 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.209e-05/0.4269, allocations: 12.16 kB / 0.537 GB, free: 9.125 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.298e-05/0.427, allocations: 11.94 kB / 0.537 GB, free: 9.113 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.695e-06/0.427, allocations: 5.188 kB / 0.537 GB, free: 9.109 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.23e-06/0.427, allocations: 0 / 0.537 GB, free: 9.109 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.4e-06/0.427, allocations: 3.984 kB / 0.537 GB, free: 9.105 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005281/0.4275, allocations: 390.4 kB / 0.5374 GB, free: 8.734 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.4276, allocations: 0 / 0.5374 GB, free: 8.734 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.843e-05/0.4277, allocations: 17.58 kB / 0.5374 GB, free: 8.727 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.495e-06/0.4277, allocations: 1.219 kB / 0.5374 GB, free: 8.727 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.355e-05/0.4277, allocations: 4 kB / 0.5374 GB, free: 8.723 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.254e-06/0.4277, allocations: 5.547 kB / 0.5374 GB, free: 8.719 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-06/0.4277, allocations: 0 / 0.5374 GB, free: 8.719 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004595/0.4282, allocations: 254.3 kB / 0.5377 GB, free: 8.527 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.661e-05/0.4282, allocations: 87.73 kB / 0.5377 GB, free: 8.426 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.096e-05/0.4283, allocations: 3.984 kB / 0.5377 GB, free: 8.422 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001289/0.4284, allocations: 15.67 kB / 0.5378 GB, free: 8.418 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.491e-05/0.4285, allocations: 18.22 kB / 0.5378 GB, free: 8.406 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.047e-05/0.4285, allocations: 10.02 kB / 0.5378 GB, free: 8.398 MB / 398.1 MB Notification: Performance of sorting global known variables: time 8.119e-05/0.4286, allocations: 113.8 kB / 0.5379 GB, free: 8.305 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.733e-06/0.4286, allocations: 0 / 0.5379 GB, free: 8.305 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002348/0.4288, allocations: 17.31 kB / 0.5379 GB, free: 8.301 MB / 398.1 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 (integrator.reset,$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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001175/0.4289, allocations: 99.34 kB / 0.538 GB, free: 8.207 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002972/0.4292, allocations: 96.58 kB / 0.5381 GB, free: 8.164 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.4292, allocations: 0 / 0.5381 GB, free: 8.164 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001342/0.4294, allocations: 39.98 kB / 0.5381 GB, free: 8.152 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003084/0.4297, allocations: 16.17 kB / 0.5381 GB, free: 8.145 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00091/0.4306, allocations: 298.1 kB / 0.5384 GB, free: 7.91 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002866/0.4309, allocations: 0.6983 MB / 0.5391 GB, free: 7.203 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.407e-05/0.431, allocations: 18.81 kB / 0.5391 GB, free: 7.195 MB / 398.1 MB Notification: Performance of SimCode: time 2.51e-07/0.431, allocations: 0 / 0.5391 GB, free: 7.195 MB / 398.1 MB Notification: Performance of Templates: time 0.003315/0.4343, allocations: 1.347 MB / 0.5404 GB, free: 6.504 MB / 398.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.sim & ./ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches