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.001373/0.001373, allocations: 113.7 kB / 18.46 MB, free: 4.574 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001311/0.001311, allocations: 206.7 kB / 19.4 MB, free: 3.633 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.381/1.381, allocations: 227.4 MB / 247.6 MB, free: 10.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2099/0.2099, allocations: 46.1 MB / 345 MB, free: 11.49 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001451/0.001451, allocations: 75.88 kB / 482 MB, free: 4.074 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2864/0.2878, allocations: 62.43 MB / 0.5316 GB, free: 13.61 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.002902/0.2908, allocations: 1.641 MB / 0.5332 GB, free: 12.32 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001086/0.2919, allocations: 0.5911 MB / 0.5338 GB, free: 11.85 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.946e-05/0.292, allocations: 6.688 kB / 0.5338 GB, free: 11.85 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001089/0.2921, allocations: 11.86 kB / 0.5338 GB, free: 11.84 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 4.769e-05/0.2921, allocations: 9.25 kB / 0.5338 GB, free: 11.83 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003699/0.2926, allocations: 88.38 kB / 0.5339 GB, free: 11.76 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001554/0.2927, allocations: 109.1 kB / 0.534 GB, free: 11.7 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001177/0.2929, allocations: 40.33 kB / 0.5341 GB, free: 11.67 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.153e-05/0.293, allocations: 40.41 kB / 0.5341 GB, free: 11.65 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.313e-05/0.293, allocations: 41.34 kB / 0.5342 GB, free: 11.62 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.901e-05/0.2931, allocations: 8.25 kB / 0.5342 GB, free: 11.62 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.666e-05/0.2931, allocations: 6.875 kB / 0.5342 GB, free: 11.62 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.712e-05/0.2932, allocations: 28.03 kB / 0.5342 GB, free: 11.59 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 7.207e-05/0.2933, allocations: 40.03 kB / 0.5342 GB, free: 11.56 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001371/0.2934, allocations: 88.08 kB / 0.5343 GB, free: 11.5 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.3e-06/0.2934, allocations: 0 / 0.5343 GB, free: 11.5 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.2934, allocations: 4 kB / 0.5343 GB, free: 11.5 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.229e-06/0.2935, allocations: 1.375 kB / 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.0006247/0.2941, allocations: 414.2 kB / 0.5347 GB, free: 11.09 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 9.333e-05/0.2942, allocations: 9.625 kB / 0.5347 GB, free: 11.09 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.444e-05/0.2943, allocations: 10.34 kB / 0.5347 GB, free: 11.08 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000247/0.2945, allocations: 210.4 kB / 0.5349 GB, free: 10.85 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.818e-05/0.2945, allocations: 8.5 kB / 0.5349 GB, free: 10.85 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.156e-05/0.2946, allocations: 5.875 kB / 0.5349 GB, free: 10.85 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002813/0.2949, allocations: 100.5 kB / 0.535 GB, free: 10.78 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.344e-06/0.2949, allocations: 0 / 0.535 GB, free: 10.78 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.469e-05/0.2949, allocations: 5.375 kB / 0.535 GB, free: 10.78 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.7e-06/0.2949, allocations: 1.375 kB / 0.5351 GB, free: 10.78 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001647/0.2951, allocations: 58.16 kB / 0.5351 GB, free: 10.75 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000738/0.2958, allocations: 383 kB / 0.5355 GB, free: 10.39 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003851/0.2962, allocations: 104.5 kB / 0.5356 GB, free: 10.33 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001189/0.2964, allocations: 39.66 kB / 0.5356 GB, free: 10.3 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.228e-06/0.2964, allocations: 5.625 kB / 0.5356 GB, free: 10.3 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002618/0.2966, allocations: 95.16 kB / 0.5357 GB, free: 10.23 MB / 398.1 MB Notification: Performance of pre-optimization done (n=7): time 1.522e-06/0.2967, allocations: 0 / 0.5357 GB, free: 10.23 MB / 398.1 MB Notification: Performance of matching and sorting (n=7): time 0.0005065/0.2972, allocations: 143.3 kB / 0.5358 GB, free: 10.15 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.234e-05/0.2972, allocations: 60.44 kB / 0.5359 GB, free: 10.08 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001238/0.2974, allocations: 146.4 kB / 0.536 GB, free: 9.957 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.876e-05/0.2974, allocations: 26.86 kB / 0.5361 GB, free: 9.926 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.774e-05/0.2974, allocations: 108.5 kB / 0.5362 GB, free: 9.82 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.263e-05/0.2975, allocations: 25.98 kB / 0.5362 GB, free: 9.797 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.639e-05/0.2975, allocations: 29.48 kB / 0.5362 GB, free: 9.77 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001128/0.2976, allocations: 322 kB / 0.5365 GB, free: 9.449 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001746/0.2978, allocations: 32.05 kB / 0.5366 GB, free: 9.438 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001683/0.298, allocations: 54.34 kB / 0.5366 GB, free: 9.402 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002204/0.2982, allocations: 80.11 kB / 0.5367 GB, free: 9.355 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.2982, allocations: 1.188 kB / 0.5367 GB, free: 9.355 MB / 398.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002997/0.2985, allocations: 120.7 kB / 0.5368 GB, free: 9.285 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.482e-05/0.2986, allocations: 9.281 kB / 0.5368 GB, free: 9.281 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.429e-06/0.2986, allocations: 1.188 kB / 0.5368 GB, free: 9.281 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.208e-05/0.2986, allocations: 1.531 kB / 0.5368 GB, free: 9.281 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001028/0.2987, allocations: 15.2 kB / 0.5368 GB, free: 9.277 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.517e-06/0.2987, allocations: 5.344 kB / 0.5368 GB, free: 9.273 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001041/0.2988, allocations: 21.11 kB / 0.5369 GB, free: 9.262 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.229e-05/0.2989, allocations: 2.531 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.0001334/0.299, allocations: 126.2 kB / 0.537 GB, free: 9.133 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.088e-05/0.2991, allocations: 12.16 kB / 0.537 GB, free: 9.125 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.468e-05/0.2991, allocations: 11.88 kB / 0.537 GB, free: 9.113 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.335e-06/0.2991, allocations: 1.156 kB / 0.537 GB, free: 9.113 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.221e-06/0.2991, allocations: 7.984 kB / 0.537 GB, free: 9.105 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.835e-06/0.2991, allocations: 288 / 0.537 GB, free: 9.105 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005159/0.2997, allocations: 398.2 kB / 0.5374 GB, free: 8.727 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.2997, allocations: 1.344 kB / 0.5374 GB, free: 8.727 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.069e-05/0.2998, allocations: 15.84 kB / 0.5374 GB, free: 8.719 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.26e-06/0.2998, allocations: 5.172 kB / 0.5374 GB, free: 8.715 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.151e-05/0.2998, allocations: 1.719 kB / 0.5374 GB, free: 8.715 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.056e-05/0.2998, allocations: 4 kB / 0.5374 GB, free: 8.711 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.2999, allocations: 0 / 0.5374 GB, free: 8.711 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004988/0.3004, allocations: 250.6 kB / 0.5377 GB, free: 8.523 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.15e-05/0.3004, allocations: 86.45 kB / 0.5377 GB, free: 8.422 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.185e-05/0.3004, allocations: 1.281 kB / 0.5377 GB, free: 8.422 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001433/0.3006, allocations: 23.44 kB / 0.5378 GB, free: 8.41 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.742e-05/0.3006, allocations: 13.48 kB / 0.5378 GB, free: 8.402 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.644e-06/0.3007, allocations: 2.75 kB / 0.5378 GB, free: 8.402 MB / 398.1 MB Notification: Performance of sorting global known variables: time 8.341e-05/0.3007, allocations: 115.1 kB / 0.5379 GB, free: 8.309 MB / 398.1 MB Notification: Performance of sort global known variables: time 4.529e-06/0.3008, allocations: 0 / 0.5379 GB, free: 8.309 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002645/0.301, allocations: 16.97 kB / 0.5379 GB, free: 8.305 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.0001309/0.3012, allocations: 104.4 kB / 0.538 GB, free: 8.207 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002954/0.3015, allocations: 87.78 kB / 0.5381 GB, free: 8.172 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.3015, allocations: 0 / 0.5381 GB, free: 8.172 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001418/0.3016, allocations: 44.17 kB / 0.5381 GB, free: 8.156 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003417/0.302, allocations: 15.55 kB / 0.5381 GB, free: 8.148 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009704/0.303, allocations: 301.2 kB / 0.5384 GB, free: 7.91 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000244/0.3032, allocations: 0.6946 MB / 0.5391 GB, free: 7.207 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.102e-05/0.3033, allocations: 13.88 kB / 0.5391 GB, free: 7.203 MB / 398.1 MB Notification: Performance of SimCode: time 3.51e-07/0.3033, allocations: 0 / 0.5391 GB, free: 7.203 MB / 398.1 MB Notification: Performance of Templates: time 0.003146/0.3064, allocations: 1.358 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