Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.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.ResetHoldIntegrator,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_ResetHoldIntegrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.ResetHoldIntegrator,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_ResetHoldIntegrator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001119/0.001119, allocations: 118.8 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001238/0.001238, allocations: 197.2 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.366/1.366, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2192/0.2192, allocations: 46.09 MB / 344.3 MB, free: 11.52 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001447/0.001447, allocations: 84.16 kB / 480.8 MB, free: 4.605 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3007/0.3022, allocations: 62.42 MB / 0.5305 GB, free: 13.43 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.003068/0.3053, allocations: 1.636 MB / 0.5321 GB, free: 12.15 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009468/0.3062, allocations: 0.5096 MB / 0.5326 GB, free: 11.75 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.731e-05/0.3064, allocations: 1.375 kB / 0.5326 GB, free: 11.75 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001173/0.3065, allocations: 15.86 kB / 0.5326 GB, free: 11.73 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.025e-05/0.3066, allocations: 8.969 kB / 0.5326 GB, free: 11.73 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001947/0.3068, allocations: 39.42 kB / 0.5327 GB, free: 11.7 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001244/0.3069, allocations: 73.98 kB / 0.5327 GB, free: 11.65 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001315/0.307, allocations: 36.83 kB / 0.5328 GB, free: 11.62 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.74e-05/0.3071, allocations: 29.48 kB / 0.5328 GB, free: 11.61 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.745e-05/0.3072, allocations: 43.55 kB / 0.5328 GB, free: 11.57 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.888e-05/0.3072, allocations: 5.594 kB / 0.5328 GB, free: 11.57 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.474e-05/0.3072, allocations: 6.531 kB / 0.5328 GB, free: 11.57 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.704e-05/0.3073, allocations: 14.2 kB / 0.5329 GB, free: 11.56 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 5.063e-05/0.3073, allocations: 33.03 kB / 0.5329 GB, free: 11.54 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001382/0.3075, allocations: 70.69 kB / 0.533 GB, free: 11.48 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.3075, allocations: 1.375 kB / 0.533 GB, free: 11.48 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.897e-06/0.3075, allocations: 0 / 0.533 GB, free: 11.48 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.22e-06/0.3075, allocations: 3.938 kB / 0.533 GB, free: 11.48 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0005501/0.308, allocations: 397.7 kB / 0.5333 GB, free: 11.07 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.008e-05/0.3081, allocations: 9.281 kB / 0.5333 GB, free: 11.07 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.626e-05/0.3081, allocations: 48.42 kB / 0.5334 GB, free: 11.02 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.378e-05/0.3082, allocations: 11.03 kB / 0.5334 GB, free: 11.02 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002392/0.3084, allocations: 189.5 kB / 0.5336 GB, free: 10.8 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.552e-05/0.3084, allocations: 3.938 kB / 0.5336 GB, free: 10.8 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.686e-05/0.3085, allocations: 9.781 kB / 0.5336 GB, free: 10.8 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001447/0.3086, allocations: 76.33 kB / 0.5337 GB, free: 10.74 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.055e-06/0.3087, allocations: 7.938 kB / 0.5337 GB, free: 10.73 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.126e-05/0.3087, allocations: 1.625 kB / 0.5337 GB, free: 10.73 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.218e-06/0.3087, allocations: 1.812 kB / 0.5337 GB, free: 10.73 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.65e-05/0.3088, allocations: 38.08 kB / 0.5337 GB, free: 10.71 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005046/0.3093, allocations: 355.8 kB / 0.5341 GB, free: 10.36 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000105/0.3094, allocations: 48.53 kB / 0.5341 GB, free: 10.32 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.105e-05/0.3094, allocations: 20.7 kB / 0.5341 GB, free: 10.3 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.055e-05/0.3094, allocations: 0 / 0.5341 GB, free: 10.3 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001129/0.3096, allocations: 65.66 kB / 0.5342 GB, free: 10.24 MB / 398.1 MB Notification: Performance of pre-optimization done (n=7): time 1.193e-06/0.3096, allocations: 0 / 0.5342 GB, free: 10.24 MB / 398.1 MB Notification: Performance of matching and sorting (n=7): time 0.0001964/0.3098, allocations: 90.45 kB / 0.5343 GB, free: 10.18 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.344e-05/0.3098, allocations: 52.78 kB / 0.5343 GB, free: 10.12 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001106/0.3099, allocations: 138.6 kB / 0.5345 GB, free: 9.996 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.817e-05/0.31, allocations: 31.08 kB / 0.5345 GB, free: 9.961 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.472e-05/0.31, allocations: 104.1 kB / 0.5346 GB, free: 9.859 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.995e-05/0.31, allocations: 14.56 kB / 0.5346 GB, free: 9.848 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.156e-05/0.3101, allocations: 24.58 kB / 0.5346 GB, free: 9.824 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 9.368e-05/0.3102, allocations: 321.6 kB / 0.5349 GB, free: 9.504 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.808e-05/0.3102, allocations: 17.62 kB / 0.5349 GB, free: 9.496 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.707e-05/0.3103, allocations: 37.5 kB / 0.535 GB, free: 9.461 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.025e-05/0.3104, allocations: 48.45 kB / 0.535 GB, free: 9.422 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.494e-06/0.3104, allocations: 1.375 kB / 0.535 GB, free: 9.422 MB / 398.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001346/0.3105, allocations: 90.83 kB / 0.5351 GB, free: 9.359 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.177e-05/0.3105, allocations: 9.438 kB / 0.5351 GB, free: 9.355 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.031e-06/0.3105, allocations: 5.312 kB / 0.5351 GB, free: 9.352 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.209e-05/0.3106, allocations: 1.375 kB / 0.5351 GB, free: 9.352 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.585e-05/0.3106, allocations: 17.48 kB / 0.5351 GB, free: 9.34 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.24e-06/0.3106, allocations: 1.375 kB / 0.5351 GB, free: 9.34 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.637e-05/0.3107, allocations: 13.48 kB / 0.5352 GB, free: 9.332 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.298e-06/0.3107, allocations: 6.75 kB / 0.5352 GB, free: 9.328 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,fallingEdge.not_u,$PRE.fallingEdge.not_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.382e-05/0.3108, allocations: 120.2 kB / 0.5353 GB, free: 9.207 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.576e-05/0.3108, allocations: 8.031 kB / 0.5353 GB, free: 9.203 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.422e-05/0.3109, allocations: 15.41 kB / 0.5353 GB, free: 9.188 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.483e-06/0.3109, allocations: 0 / 0.5353 GB, free: 9.188 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.738e-06/0.3109, allocations: 1.375 kB / 0.5353 GB, free: 9.188 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.397e-06/0.3109, allocations: 4 kB / 0.5353 GB, free: 9.184 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000326/0.3112, allocations: 349.2 kB / 0.5356 GB, free: 8.828 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.3112, allocations: 0 / 0.5356 GB, free: 8.828 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.92e-05/0.3113, allocations: 8.062 kB / 0.5356 GB, free: 8.824 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.26e-06/0.3113, allocations: 3.984 kB / 0.5356 GB, free: 8.82 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.196e-05/0.3113, allocations: 9.359 kB / 0.5357 GB, free: 8.812 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.913e-06/0.3113, allocations: 0 / 0.5357 GB, free: 8.812 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.3113, allocations: 1.375 kB / 0.5357 GB, free: 8.812 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002272/0.3116, allocations: 200.4 kB / 0.5359 GB, free: 8.637 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.991e-05/0.3116, allocations: 83.77 kB / 0.5359 GB, free: 8.539 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.069e-05/0.3117, allocations: 5.375 kB / 0.5359 GB, free: 8.535 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.021e-05/0.3117, allocations: 6.734 kB / 0.5359 GB, free: 8.531 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.391e-05/0.3118, allocations: 4.125 kB / 0.5359 GB, free: 8.531 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.483e-06/0.3118, allocations: 2.75 kB / 0.5359 GB, free: 8.531 MB / 398.1 MB Notification: Performance of sorting global known variables: time 6.727e-05/0.3119, allocations: 108.7 kB / 0.5361 GB, free: 8.441 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3119, allocations: 0 / 0.5361 GB, free: 8.441 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002406/0.3121, allocations: 28.28 kB / 0.5361 GB, free: 8.426 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,fallingEdge.not_u) * Number of discrete states: 1 (fallingEdge.not_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.0004496/0.3126, allocations: 0.7194 MB / 0.5368 GB, free: 7.73 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001331/0.3127, allocations: 44.08 kB / 0.5368 GB, free: 7.715 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.3128, allocations: 0 / 0.5368 GB, free: 7.715 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 5.337e-05/0.3128, allocations: 25.83 kB / 0.5368 GB, free: 7.703 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003048/0.3131, allocations: 24.52 kB / 0.5369 GB, free: 7.688 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001453/0.3146, allocations: 1.511 MB / 0.5383 GB, free: 6.301 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002251/0.3148, allocations: 0.697 MB / 0.539 GB, free: 5.594 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 3.902e-05/0.3149, allocations: 9.547 kB / 0.539 GB, free: 5.59 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.36e-05/0.3149, allocations: 28.39 kB / 0.5391 GB, free: 5.566 MB / 398.1 MB Notification: Performance of SimCode: time 2.31e-07/0.3149, allocations: 0 / 0.5391 GB, free: 5.566 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02019/0.3351, allocations: 2.245 MB / 0.5413 GB, free: 4.359 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.512/7.847, allocations: 8.016 kB / 0.5413 GB, free: 4.355 MB / 398.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Blocks_ResetHoldIntegrator_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Blocks_ResetHoldIntegrator.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/ResetHoldIntegrator/ResetHoldIntegrator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.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,const0.k,const0.y,const1.k,const1.y,der(integrator.y),fallingEdge.pre_u_start,fallingEdge.u,fallingEdge.y,integrator.initType,integrator.k,integrator.reset,integrator.u,integrator.use_reset,integrator.use_set,integrator.y,integrator.y_start,switch.u1,switch.u2,switch.u3,switch.y,time