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: "" <> buildModelFMU(ModelicaTest.Blocks.LimResetIntegrator,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_LimResetIntegrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.LimResetIntegrator,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_LimResetIntegrator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001701/0.001702, allocations: 121.7 kB / 17.79 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002175/0.002176, allocations: 199.8 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.371/1.371, allocations: 227.4 MB / 246.9 MB, free: 10.5 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.215/0.215, allocations: 46.1 MB / 344.3 MB, free: 11.53 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001642/0.001642, allocations: 75.88 kB / 480.8 MB, free: 4.609 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.36/0.3617, allocations: 62.44 MB / 0.5305 GB, free: 13.44 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.002695/0.3644, allocations: 1.643 MB / 0.5321 GB, free: 12.15 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009672/0.3654, allocations: 0.5841 MB / 0.5327 GB, free: 11.69 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.561e-05/0.3655, allocations: 9.75 kB / 0.5327 GB, free: 11.68 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001096/0.3656, allocations: 11.86 kB / 0.5327 GB, free: 11.67 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 4.886e-05/0.3657, allocations: 9.594 kB / 0.5327 GB, free: 11.66 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003241/0.366, allocations: 94.97 kB / 0.5328 GB, free: 11.59 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001821/0.3662, allocations: 112.5 kB / 0.5329 GB, free: 11.53 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001157/0.3663, allocations: 38.86 kB / 0.5329 GB, free: 11.5 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.629e-05/0.3664, allocations: 40.94 kB / 0.533 GB, free: 11.48 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.735e-05/0.3665, allocations: 44.52 kB / 0.533 GB, free: 11.45 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.041e-05/0.3665, allocations: 8.219 kB / 0.533 GB, free: 11.45 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.499e-05/0.3665, allocations: 7.531 kB / 0.533 GB, free: 11.45 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.557e-05/0.3666, allocations: 27.27 kB / 0.5331 GB, free: 11.42 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 4.999e-05/0.3666, allocations: 38.3 kB / 0.5331 GB, free: 11.39 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001428/0.3668, allocations: 85.73 kB / 0.5332 GB, free: 11.33 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.3668, allocations: 3.469 kB / 0.5332 GB, free: 11.33 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.3668, allocations: 0 / 0.5332 GB, free: 11.33 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.819e-06/0.3668, allocations: 0 / 0.5332 GB, free: 11.33 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.0006446/0.3675, allocations: 414.9 kB / 0.5336 GB, free: 10.91 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.602e-05/0.3675, allocations: 13.62 kB / 0.5336 GB, free: 10.91 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.022e-05/0.3676, allocations: 40.11 kB / 0.5336 GB, free: 10.86 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.366e-05/0.3676, allocations: 10.34 kB / 0.5336 GB, free: 10.86 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003057/0.3679, allocations: 205.8 kB / 0.5338 GB, free: 10.63 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.715e-05/0.368, allocations: 8.5 kB / 0.5338 GB, free: 10.63 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.884e-05/0.368, allocations: 4.5 kB / 0.5339 GB, free: 10.63 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002965/0.3683, allocations: 105.6 kB / 0.534 GB, free: 10.56 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.458e-06/0.3683, allocations: 0 / 0.534 GB, free: 10.56 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.664e-05/0.3683, allocations: 5.375 kB / 0.534 GB, free: 10.55 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.681e-06/0.3683, allocations: 1.375 kB / 0.534 GB, free: 10.55 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001654/0.3685, allocations: 55.28 kB / 0.534 GB, free: 10.53 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006917/0.3692, allocations: 387.7 kB / 0.5344 GB, free: 10.16 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003448/0.3696, allocations: 103.5 kB / 0.5345 GB, free: 10.11 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001143/0.3697, allocations: 36.05 kB / 0.5345 GB, free: 10.09 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.309e-05/0.3697, allocations: 3.984 kB / 0.5345 GB, free: 10.08 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002495/0.37, allocations: 96.64 kB / 0.5346 GB, free: 10.01 MB / 398.1 MB Notification: Performance of pre-optimization done (n=7): time 1.533e-06/0.37, allocations: 0 / 0.5346 GB, free: 10.01 MB / 398.1 MB Notification: Performance of matching and sorting (n=7): time 0.000479/0.3705, allocations: 142.8 kB / 0.5347 GB, free: 9.93 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.724e-05/0.3705, allocations: 56.69 kB / 0.5348 GB, free: 9.863 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001193/0.3707, allocations: 147.7 kB / 0.5349 GB, free: 9.738 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.895e-05/0.3707, allocations: 26.89 kB / 0.535 GB, free: 9.707 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.346e-05/0.3707, allocations: 104.6 kB / 0.5351 GB, free: 9.605 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.441e-05/0.3708, allocations: 18.28 kB / 0.5351 GB, free: 9.59 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.149e-05/0.3708, allocations: 33.14 kB / 0.5351 GB, free: 9.559 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001078/0.3709, allocations: 325.6 kB / 0.5354 GB, free: 9.234 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001229/0.3711, allocations: 41.23 kB / 0.5355 GB, free: 9.215 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001358/0.3712, allocations: 49.47 kB / 0.5355 GB, free: 9.184 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002159/0.3714, allocations: 79.98 kB / 0.5356 GB, free: 9.137 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.3715, allocations: 1.125 kB / 0.5356 GB, free: 9.137 MB / 398.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002962/0.3718, allocations: 116.6 kB / 0.5357 GB, free: 9.07 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.821e-05/0.3718, allocations: 9.281 kB / 0.5357 GB, free: 9.066 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.829e-06/0.3718, allocations: 1.031 kB / 0.5357 GB, free: 9.066 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.332e-05/0.3718, allocations: 1.344 kB / 0.5357 GB, free: 9.066 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001003/0.3719, allocations: 23.77 kB / 0.5357 GB, free: 9.055 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.643e-06/0.3719, allocations: 1.094 kB / 0.5357 GB, free: 9.055 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.789e-05/0.372, allocations: 20.98 kB / 0.5358 GB, free: 9.043 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.199e-05/0.3721, allocations: 6.484 kB / 0.5358 GB, free: 9.039 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.0001047/0.3722, allocations: 118.8 kB / 0.5359 GB, free: 8.918 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.235e-05/0.3722, allocations: 17.3 kB / 0.5359 GB, free: 8.906 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.646e-05/0.3722, allocations: 14.47 kB / 0.5359 GB, free: 8.891 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.996e-06/0.3722, allocations: 1.281 kB / 0.5359 GB, free: 8.891 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.519e-06/0.3723, allocations: 0 / 0.5359 GB, free: 8.891 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.536e-06/0.3723, allocations: 1.25 kB / 0.5359 GB, free: 8.891 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005086/0.3728, allocations: 396.9 kB / 0.5363 GB, free: 8.512 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.294e-06/0.3728, allocations: 1.375 kB / 0.5363 GB, free: 8.512 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.351e-05/0.3729, allocations: 12.53 kB / 0.5363 GB, free: 8.508 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.685e-06/0.3729, allocations: 1.375 kB / 0.5363 GB, free: 8.508 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.438e-05/0.3729, allocations: 7.984 kB / 0.5363 GB, free: 8.5 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.066e-06/0.3729, allocations: 5.312 kB / 0.5363 GB, free: 8.496 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.3729, allocations: 0 / 0.5363 GB, free: 8.496 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004575/0.3734, allocations: 249.5 kB / 0.5366 GB, free: 8.309 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.403e-05/0.3734, allocations: 87.7 kB / 0.5366 GB, free: 8.207 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.859e-05/0.3735, allocations: 1.375 kB / 0.5366 GB, free: 8.207 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001389/0.3736, allocations: 18.91 kB / 0.5367 GB, free: 8.199 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.147e-05/0.3737, allocations: 18.67 kB / 0.5367 GB, free: 8.188 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.719e-06/0.3737, allocations: 1.438 kB / 0.5367 GB, free: 8.188 MB / 398.1 MB Notification: Performance of sorting global known variables: time 8.179e-05/0.3738, allocations: 121.2 kB / 0.5368 GB, free: 8.09 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3738, allocations: 0 / 0.5368 GB, free: 8.09 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000242/0.374, allocations: 14.12 kB / 0.5368 GB, free: 8.09 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.000721/0.3748, allocations: 0.7713 MB / 0.5376 GB, free: 7.379 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002891/0.3751, allocations: 92.89 kB / 0.5376 GB, free: 7.34 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.3751, allocations: 0 / 0.5376 GB, free: 7.34 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001401/0.3752, allocations: 47.5 kB / 0.5377 GB, free: 7.32 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003123/0.3755, allocations: 19.95 kB / 0.5377 GB, free: 7.309 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002491/0.378, allocations: 1.695 MB / 0.5394 GB, free: 5.859 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002769/0.3783, allocations: 0.6991 MB / 0.54 GB, free: 5.152 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.309e-05/0.3784, allocations: 9.641 kB / 0.5401 GB, free: 5.148 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.733e-05/0.3785, allocations: 28.88 kB / 0.5401 GB, free: 5.125 MB / 398.1 MB Notification: Performance of SimCode: time 3.21e-07/0.3785, allocations: 2.156 kB / 0.5401 GB, free: 5.125 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02445/0.4029, allocations: 2.656 MB / 0.5427 GB, free: 3.711 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.553/7.956, allocations: 10.03 kB / 0.5427 GB, free: 3.703 MB / 398.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Blocks_LimResetIntegrator_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Blocks_LimResetIntegrator.fmu > 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) "" Variables in the reference:time,integrator.y Variables in the result:booleanPulse.period,booleanPulse.startTime,booleanPulse.width,booleanPulse.y,change.pre_u_start,change.u,change.y,const1.k,const1.y,constMinus1.k,constMinus1.y,der(integrator.y),integrator.initType,integrator.k,integrator.limitsAtInit,integrator.outMax,integrator.outMin,integrator.reset,integrator.strict,integrator.u,integrator.use_reset,integrator.use_set,integrator.y,integrator.y_start,switch.u1,switch.u2,switch.u3,switch.y,time