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.00129/0.00129, allocations: 118.7 kB / 18.45 MB, free: 4.59 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001361/0.001361, allocations: 207.6 kB / 19.41 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.478/1.478, allocations: 227.4 MB / 247.6 MB, free: 10.39 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2589/0.2589, allocations: 46.13 MB / 345 MB, free: 11.41 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003126/0.003126, allocations: 79.88 kB / 482 MB, free: 3.973 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3045/0.3077, allocations: 62.43 MB / 0.5317 GB, free: 13.55 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.002747/0.3104, allocations: 1.643 MB / 0.5333 GB, free: 12.27 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001053/0.3115, allocations: 0.5925 MB / 0.5339 GB, free: 11.8 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.426e-05/0.3115, allocations: 1.938 kB / 0.5339 GB, free: 11.8 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001232/0.3116, allocations: 7.875 kB / 0.5339 GB, free: 11.79 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.239e-05/0.3117, allocations: 17.91 kB / 0.5339 GB, free: 11.77 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003299/0.312, allocations: 94.77 kB / 0.534 GB, free: 11.7 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001686/0.3122, allocations: 114 kB / 0.5341 GB, free: 11.64 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001047/0.3123, allocations: 19.86 kB / 0.5341 GB, free: 11.62 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.316e-05/0.3124, allocations: 44.78 kB / 0.5342 GB, free: 11.6 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.163e-05/0.3125, allocations: 44.61 kB / 0.5342 GB, free: 11.56 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.982e-05/0.3125, allocations: 7.656 kB / 0.5342 GB, free: 11.56 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.388e-05/0.3125, allocations: 8.25 kB / 0.5342 GB, free: 11.56 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.855e-05/0.3125, allocations: 18.67 kB / 0.5343 GB, free: 11.55 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 4.961e-05/0.3126, allocations: 40.05 kB / 0.5343 GB, free: 11.52 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001512/0.3127, allocations: 92.75 kB / 0.5344 GB, free: 11.45 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.177e-06/0.3127, allocations: 1.375 kB / 0.5344 GB, free: 11.45 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.3127, allocations: 4 kB / 0.5344 GB, free: 11.45 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.31e-06/0.3127, allocations: 0 / 0.5344 GB, free: 11.45 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.0006732/0.3134, allocations: 419.1 kB / 0.5348 GB, free: 11.03 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.077e-05/0.3134, allocations: 9.625 kB / 0.5348 GB, free: 11.03 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.089e-05/0.3135, allocations: 10.39 kB / 0.5348 GB, free: 11.03 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000274/0.3138, allocations: 209.9 kB / 0.535 GB, free: 10.8 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.861e-05/0.3138, allocations: 3.125 kB / 0.535 GB, free: 10.8 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.469e-05/0.3138, allocations: 9.875 kB / 0.535 GB, free: 10.79 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002874/0.3141, allocations: 108.4 kB / 0.5351 GB, free: 10.72 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.836e-06/0.3141, allocations: 0 / 0.5351 GB, free: 10.72 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.259e-05/0.3141, allocations: 1.375 kB / 0.5351 GB, free: 10.72 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.749e-06/0.3141, allocations: 5.312 kB / 0.5351 GB, free: 10.71 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000172/0.3143, allocations: 54.22 kB / 0.5352 GB, free: 10.69 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006917/0.315, allocations: 387.7 kB / 0.5356 GB, free: 10.32 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003423/0.3153, allocations: 102.8 kB / 0.5357 GB, free: 10.27 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001276/0.3154, allocations: 34.77 kB / 0.5357 GB, free: 10.25 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.343e-05/0.3155, allocations: 1.375 kB / 0.5357 GB, free: 10.25 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002528/0.3157, allocations: 96.36 kB / 0.5358 GB, free: 10.17 MB / 398.1 MB Notification: Performance of pre-optimization done (n=7): time 1.413e-06/0.3157, allocations: 0 / 0.5358 GB, free: 10.17 MB / 398.1 MB Notification: Performance of matching and sorting (n=7): time 0.000485/0.3162, allocations: 146.6 kB / 0.5359 GB, free: 10.09 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.015e-05/0.3162, allocations: 56.66 kB / 0.536 GB, free: 10.02 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001409/0.3164, allocations: 154.2 kB / 0.5361 GB, free: 9.895 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.152e-05/0.3164, allocations: 26.92 kB / 0.5361 GB, free: 9.863 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.974e-05/0.3165, allocations: 104.8 kB / 0.5362 GB, free: 9.762 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.74e-05/0.3165, allocations: 21.98 kB / 0.5363 GB, free: 9.742 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.317e-05/0.3166, allocations: 29.36 kB / 0.5363 GB, free: 9.715 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001442/0.3167, allocations: 322.4 kB / 0.5366 GB, free: 9.395 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001291/0.3168, allocations: 32.47 kB / 0.5366 GB, free: 9.383 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001399/0.317, allocations: 57 kB / 0.5367 GB, free: 9.344 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002233/0.3172, allocations: 73.66 kB / 0.5368 GB, free: 9.305 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.44e-06/0.3172, allocations: 3.984 kB / 0.5368 GB, free: 9.301 MB / 398.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0003087/0.3175, allocations: 125 kB / 0.5369 GB, free: 9.227 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.622e-05/0.3175, allocations: 9.344 kB / 0.5369 GB, free: 9.223 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.969e-06/0.3175, allocations: 1.469 kB / 0.5369 GB, free: 9.223 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.354e-05/0.3175, allocations: 1.125 kB / 0.5369 GB, free: 9.223 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001078/0.3177, allocations: 19.33 kB / 0.5369 GB, free: 9.215 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.39e-06/0.3177, allocations: 1.094 kB / 0.5369 GB, free: 9.215 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001065/0.3178, allocations: 25.84 kB / 0.5369 GB, free: 9.199 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.428e-06/0.3178, allocations: 6.234 kB / 0.5369 GB, free: 9.195 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 9.95e-05/0.3179, allocations: 122 kB / 0.5371 GB, free: 9.074 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.616e-05/0.3179, allocations: 16.28 kB / 0.5371 GB, free: 9.062 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.112e-05/0.3179, allocations: 19.3 kB / 0.5371 GB, free: 9.043 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.424e-06/0.3179, allocations: 1.156 kB / 0.5371 GB, free: 9.043 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.687e-06/0.3179, allocations: 0 / 0.5371 GB, free: 9.043 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.035e-06/0.3179, allocations: 3.938 kB / 0.5371 GB, free: 9.039 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005606/0.3185, allocations: 398.4 kB / 0.5375 GB, free: 8.66 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.3185, allocations: 0 / 0.5375 GB, free: 8.66 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.831e-05/0.3186, allocations: 13.48 kB / 0.5375 GB, free: 8.656 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.464e-06/0.3186, allocations: 1 kB / 0.5375 GB, free: 8.656 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.039e-05/0.3186, allocations: 0 / 0.5375 GB, free: 8.656 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.412e-06/0.3186, allocations: 4.969 kB / 0.5375 GB, free: 8.652 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.3186, allocations: 0 / 0.5375 GB, free: 8.652 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004903/0.3191, allocations: 258.5 kB / 0.5377 GB, free: 8.457 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.54e-05/0.3192, allocations: 87.14 kB / 0.5378 GB, free: 8.355 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.026e-05/0.3192, allocations: 1.125 kB / 0.5378 GB, free: 8.355 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001493/0.3193, allocations: 19.2 kB / 0.5378 GB, free: 8.348 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.52e-05/0.3194, allocations: 14.66 kB / 0.5379 GB, free: 8.34 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.157e-06/0.3194, allocations: 5.188 kB / 0.5379 GB, free: 8.336 MB / 398.1 MB Notification: Performance of sorting global known variables: time 8.73e-05/0.3195, allocations: 110.4 kB / 0.538 GB, free: 8.25 MB / 398.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.3195, allocations: 0 / 0.538 GB, free: 8.25 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002431/0.3197, allocations: 26.02 kB / 0.538 GB, free: 8.238 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.0001054/0.3198, allocations: 95.28 kB / 0.5381 GB, free: 8.148 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003099/0.3201, allocations: 82.55 kB / 0.5382 GB, free: 8.117 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.3201, allocations: 0 / 0.5382 GB, free: 8.117 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001388/0.3203, allocations: 46.16 kB / 0.5382 GB, free: 8.098 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003149/0.3206, allocations: 20.02 kB / 0.5382 GB, free: 8.086 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009563/0.3216, allocations: 270.3 kB / 0.5385 GB, free: 7.883 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000324/0.3219, allocations: 0.6986 MB / 0.5392 GB, free: 7.176 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 4.722e-05/0.3219, allocations: 14.48 kB / 0.5392 GB, free: 7.168 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.465e-05/0.322, allocations: 13.12 kB / 0.5392 GB, free: 7.164 MB / 398.1 MB Notification: Performance of SimCode: time 4.61e-07/0.322, allocations: 0 / 0.5392 GB, free: 7.164 MB / 398.1 MB Notification: Performance of Templates: time 0.004084/0.326, allocations: 1.244 MB / 0.5404 GB, free: 6.535 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 -s gbode -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