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.001462/0.001462, allocations: 117.7 kB / 17.78 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001407/0.001407, allocations: 199.8 kB / 18.73 MB, free: 4.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.379/1.379, 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.2133/0.2133, allocations: 46.1 MB / 344.3 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001509/0.001509, allocations: 75.88 kB / 480.8 MB, free: 4.586 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3254/0.327, allocations: 62.44 MB / 0.5305 GB, free: 13.41 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.003316/0.3303, allocations: 1.641 MB / 0.5321 GB, free: 12.12 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001124/0.3315, allocations: 0.584 MB / 0.5327 GB, free: 11.66 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001368/0.3316, allocations: 1.219 kB / 0.5327 GB, free: 11.66 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001217/0.3318, allocations: 13.23 kB / 0.5327 GB, free: 11.65 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.45e-05/0.3319, allocations: 12.75 kB / 0.5327 GB, free: 11.64 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004226/0.3323, allocations: 96.84 kB / 0.5328 GB, free: 11.57 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002101/0.3325, allocations: 116.1 kB / 0.5329 GB, free: 11.5 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001372/0.3327, allocations: 30.81 kB / 0.5329 GB, free: 11.48 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.784e-05/0.3328, allocations: 41.84 kB / 0.533 GB, free: 11.46 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.461e-05/0.3329, allocations: 43.3 kB / 0.533 GB, free: 11.42 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.832e-05/0.3329, allocations: 8.906 kB / 0.533 GB, free: 11.42 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.736e-05/0.3329, allocations: 11.81 kB / 0.533 GB, free: 11.42 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.314e-05/0.333, allocations: 22.53 kB / 0.5331 GB, free: 11.4 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 6.302e-05/0.333, allocations: 40.89 kB / 0.5331 GB, free: 11.37 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001662/0.3332, allocations: 91.48 kB / 0.5332 GB, free: 11.3 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/0.3332, allocations: 3.219 kB / 0.5332 GB, free: 11.3 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.3332, allocations: 0 / 0.5332 GB, free: 11.3 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.662e-06/0.3332, allocations: 0 / 0.5332 GB, free: 11.3 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.0007136/0.3339, allocations: 410.2 kB / 0.5336 GB, free: 10.89 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.784e-05/0.334, allocations: 13.56 kB / 0.5336 GB, free: 10.88 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.477e-05/0.334, allocations: 41.48 kB / 0.5336 GB, free: 10.84 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.736e-05/0.3341, allocations: 10.34 kB / 0.5336 GB, free: 10.83 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002873/0.3344, allocations: 205.8 kB / 0.5338 GB, free: 10.61 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.767e-05/0.3344, allocations: 3.125 kB / 0.5338 GB, free: 10.61 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.479e-05/0.3344, allocations: 9.875 kB / 0.5339 GB, free: 10.6 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002741/0.3347, allocations: 108.2 kB / 0.534 GB, free: 10.53 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.947e-06/0.3347, allocations: 0 / 0.534 GB, free: 10.53 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.239e-05/0.3348, allocations: 1.375 kB / 0.534 GB, free: 10.53 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.182e-06/0.3348, allocations: 1.375 kB / 0.534 GB, free: 10.53 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001602/0.3349, allocations: 50.22 kB / 0.534 GB, free: 10.51 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007144/0.3357, allocations: 395.6 kB / 0.5344 GB, free: 10.13 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003215/0.336, allocations: 100.1 kB / 0.5345 GB, free: 10.08 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001058/0.3361, allocations: 32.14 kB / 0.5345 GB, free: 10.06 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.366e-05/0.3361, allocations: 3.938 kB / 0.5345 GB, free: 10.06 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002369/0.3364, allocations: 101.3 kB / 0.5346 GB, free: 9.98 MB / 398.1 MB Notification: Performance of pre-optimization done (n=7): time 1.492e-06/0.3364, allocations: 0 / 0.5346 GB, free: 9.98 MB / 398.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004533/0.3368, allocations: 142.5 kB / 0.5347 GB, free: 9.902 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.056e-05/0.3369, allocations: 56.78 kB / 0.5348 GB, free: 9.836 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001288/0.337, allocations: 150.4 kB / 0.5349 GB, free: 9.711 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.809e-05/0.3371, allocations: 30.8 kB / 0.535 GB, free: 9.676 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.685e-05/0.3371, allocations: 104.4 kB / 0.5351 GB, free: 9.574 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.332e-05/0.3371, allocations: 18.45 kB / 0.5351 GB, free: 9.559 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.761e-05/0.3372, allocations: 33.42 kB / 0.5351 GB, free: 9.527 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001021/0.3373, allocations: 318.3 kB / 0.5354 GB, free: 9.211 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001195/0.3374, allocations: 39.94 kB / 0.5355 GB, free: 9.191 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001228/0.3376, allocations: 50.03 kB / 0.5355 GB, free: 9.16 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002043/0.3378, allocations: 77.09 kB / 0.5356 GB, free: 9.117 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.957e-06/0.3378, allocations: 7.922 kB / 0.5356 GB, free: 9.109 MB / 398.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002836/0.3381, allocations: 117 kB / 0.5357 GB, free: 9.043 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.817e-05/0.3381, allocations: 9.625 kB / 0.5357 GB, free: 9.039 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.75e-06/0.3381, allocations: 5.219 kB / 0.5357 GB, free: 9.035 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.278e-05/0.3381, allocations: 0 / 0.5357 GB, free: 9.035 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000106/0.3382, allocations: 16.3 kB / 0.5357 GB, free: 9.031 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.76e-06/0.3383, allocations: 1.062 kB / 0.5357 GB, free: 9.031 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001032/0.3384, allocations: 21.89 kB / 0.5358 GB, free: 9.02 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.594e-06/0.3384, allocations: 2.062 kB / 0.5358 GB, free: 9.02 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 8.294e-05/0.3385, allocations: 119.2 kB / 0.5359 GB, free: 8.898 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.24e-05/0.3385, allocations: 16.09 kB / 0.5359 GB, free: 8.887 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.12e-05/0.3385, allocations: 18.86 kB / 0.5359 GB, free: 8.867 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.907e-06/0.3386, allocations: 4.953 kB / 0.5359 GB, free: 8.863 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.6e-06/0.3386, allocations: 1.125 kB / 0.5359 GB, free: 8.863 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.036e-06/0.3386, allocations: 0 / 0.5359 GB, free: 8.863 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004927/0.3391, allocations: 397.4 kB / 0.5363 GB, free: 8.484 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.883e-06/0.3391, allocations: 1.25 kB / 0.5363 GB, free: 8.484 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.603e-05/0.3392, allocations: 16.95 kB / 0.5363 GB, free: 8.477 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.415e-06/0.3392, allocations: 0 / 0.5363 GB, free: 8.477 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.063e-05/0.3392, allocations: 1.281 kB / 0.5363 GB, free: 8.477 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.743e-06/0.3392, allocations: 0 / 0.5363 GB, free: 8.477 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.313e-06/0.3392, allocations: 1.531 kB / 0.5363 GB, free: 8.477 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004535/0.3397, allocations: 249.3 kB / 0.5365 GB, free: 8.289 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.271e-05/0.3397, allocations: 87.7 kB / 0.5366 GB, free: 8.188 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.225e-05/0.3398, allocations: 5.375 kB / 0.5366 GB, free: 8.184 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001367/0.3399, allocations: 19.05 kB / 0.5367 GB, free: 8.176 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.949e-05/0.34, allocations: 13.47 kB / 0.5367 GB, free: 8.168 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.809e-06/0.34, allocations: 6.75 kB / 0.5367 GB, free: 8.164 MB / 398.1 MB Notification: Performance of sorting global known variables: time 7.442e-05/0.3401, allocations: 105.1 kB / 0.5368 GB, free: 8.078 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3401, allocations: 5.156 kB / 0.5368 GB, free: 8.074 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002591/0.3403, allocations: 20.92 kB / 0.5368 GB, free: 8.066 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.0006725/0.341, allocations: 0.7746 MB / 0.5376 GB, free: 7.352 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003022/0.3413, allocations: 92.91 kB / 0.5376 GB, free: 7.312 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.006e-06/0.3413, allocations: 1.062 kB / 0.5376 GB, free: 7.312 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001453/0.3415, allocations: 38.84 kB / 0.5377 GB, free: 7.301 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003079/0.3418, allocations: 20.67 kB / 0.5377 GB, free: 7.289 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002442/0.3442, allocations: 1.696 MB / 0.5394 GB, free: 5.84 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002537/0.3445, allocations: 0.7029 MB / 0.54 GB, free: 5.129 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.155e-05/0.3446, allocations: 10.11 kB / 0.5401 GB, free: 5.125 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.396e-05/0.3446, allocations: 28.91 kB / 0.5401 GB, free: 5.102 MB / 398.1 MB Notification: Performance of SimCode: time 3.7e-07/0.3447, allocations: 0 / 0.5401 GB, free: 5.102 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02024/0.3649, allocations: 2.661 MB / 0.5427 GB, free: 3.688 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.62/7.985, allocations: 13.66 kB / 0.5427 GB, free: 3.68 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