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.001232/0.001232, allocations: 117.6 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001213/0.001213, allocations: 199.9 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.361/1.361, allocations: 227.4 MB / 247 MB, free: 10.4 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.211/0.211, allocations: 46.12 MB / 344.3 MB, free: 11.42 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002104/0.002104, allocations: 75.88 kB / 480.9 MB, free: 4.492 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.321/0.3231, allocations: 62.45 MB / 0.5306 GB, free: 13.32 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.002745/0.3259, allocations: 1.627 MB / 0.5322 GB, free: 12.05 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008533/0.3268, allocations: 0.5209 MB / 0.5327 GB, free: 11.63 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.236e-05/0.3269, allocations: 1.969 kB / 0.5327 GB, free: 11.63 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001103/0.327, allocations: 7.875 kB / 0.5327 GB, free: 11.62 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 4.441e-05/0.327, allocations: 17.11 kB / 0.5327 GB, free: 11.61 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001728/0.3272, allocations: 31.84 kB / 0.5328 GB, free: 11.59 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001359/0.3274, allocations: 73.86 kB / 0.5328 GB, free: 11.54 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001211/0.3275, allocations: 36.95 kB / 0.5329 GB, free: 11.52 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.385e-05/0.3275, allocations: 24.89 kB / 0.5329 GB, free: 11.5 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.806e-05/0.3276, allocations: 34.94 kB / 0.5329 GB, free: 11.47 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.85e-05/0.3276, allocations: 11.12 kB / 0.5329 GB, free: 11.47 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.432e-05/0.3277, allocations: 5.375 kB / 0.5329 GB, free: 11.47 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.876e-05/0.3277, allocations: 23.5 kB / 0.533 GB, free: 11.45 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 5.473e-05/0.3278, allocations: 36.27 kB / 0.533 GB, free: 11.42 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001357/0.3279, allocations: 72.56 kB / 0.5331 GB, free: 11.37 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.007e-06/0.3279, allocations: 0 / 0.5331 GB, free: 11.37 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.467e-06/0.3279, allocations: 0 / 0.5331 GB, free: 11.37 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.33e-06/0.3279, allocations: 5.188 kB / 0.5331 GB, free: 11.37 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.0005573/0.3285, allocations: 398.7 kB / 0.5335 GB, free: 10.96 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.512e-05/0.3285, allocations: 7.438 kB / 0.5335 GB, free: 10.96 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.702e-05/0.3286, allocations: 41.77 kB / 0.5335 GB, free: 10.91 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.065e-05/0.3286, allocations: 9.672 kB / 0.5335 GB, free: 10.91 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000235/0.3289, allocations: 198 kB / 0.5337 GB, free: 10.69 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.476e-05/0.3289, allocations: 8.312 kB / 0.5337 GB, free: 10.68 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.917e-05/0.3289, allocations: 4.844 kB / 0.5337 GB, free: 10.68 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001424/0.3291, allocations: 75.8 kB / 0.5338 GB, free: 10.62 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.643e-05/0.3291, allocations: 0 / 0.5338 GB, free: 10.62 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.104e-05/0.3291, allocations: 5.375 kB / 0.5338 GB, free: 10.62 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.861e-06/0.3291, allocations: 1.375 kB / 0.5338 GB, free: 10.62 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.215e-05/0.3292, allocations: 39.22 kB / 0.5338 GB, free: 10.6 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005435/0.3298, allocations: 347.3 kB / 0.5342 GB, free: 10.26 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001059/0.3299, allocations: 53.75 kB / 0.5342 GB, free: 10.21 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.383e-05/0.3299, allocations: 18.36 kB / 0.5342 GB, free: 10.2 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.068e-05/0.3299, allocations: 1.375 kB / 0.5342 GB, free: 10.2 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001263/0.3301, allocations: 74.53 kB / 0.5343 GB, free: 10.13 MB / 398.1 MB Notification: Performance of pre-optimization done (n=7): time 1.283e-06/0.3301, allocations: 0 / 0.5343 GB, free: 10.13 MB / 398.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002029/0.3303, allocations: 86.52 kB / 0.5344 GB, free: 10.07 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.876e-05/0.3303, allocations: 52.78 kB / 0.5344 GB, free: 10.01 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001168/0.3305, allocations: 140.8 kB / 0.5346 GB, free: 9.887 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.98e-05/0.3305, allocations: 27.08 kB / 0.5346 GB, free: 9.855 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.398e-05/0.3306, allocations: 102.8 kB / 0.5347 GB, free: 9.754 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.535e-05/0.3306, allocations: 24.09 kB / 0.5347 GB, free: 9.734 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.361e-05/0.3306, allocations: 24.58 kB / 0.5347 GB, free: 9.711 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000133/0.3308, allocations: 321.6 kB / 0.535 GB, free: 9.391 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.856e-05/0.3308, allocations: 16.25 kB / 0.5351 GB, free: 9.383 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.203e-05/0.3309, allocations: 38.94 kB / 0.5351 GB, free: 9.348 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.051e-05/0.331, allocations: 56.39 kB / 0.5351 GB, free: 9.301 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.834e-06/0.331, allocations: 0 / 0.5351 GB, free: 9.301 MB / 398.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001298/0.3311, allocations: 88.41 kB / 0.5352 GB, free: 9.242 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.36e-05/0.3311, allocations: 13.42 kB / 0.5352 GB, free: 9.234 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.021e-06/0.3311, allocations: 7.875 kB / 0.5353 GB, free: 9.227 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.122e-05/0.3311, allocations: 1.375 kB / 0.5353 GB, free: 9.227 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.669e-05/0.3312, allocations: 6.875 kB / 0.5353 GB, free: 9.227 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.564e-06/0.3312, allocations: 9.5 kB / 0.5353 GB, free: 9.219 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.35e-05/0.3313, allocations: 12.11 kB / 0.5353 GB, free: 9.211 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.777e-06/0.3313, allocations: 2.75 kB / 0.5353 GB, free: 9.211 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.777e-05/0.3314, allocations: 121.5 kB / 0.5354 GB, free: 9.09 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.735e-05/0.3314, allocations: 8.078 kB / 0.5354 GB, free: 9.086 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.776e-05/0.3315, allocations: 14 kB / 0.5354 GB, free: 9.07 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.262e-06/0.3315, allocations: 1.344 kB / 0.5354 GB, free: 9.07 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.3315, allocations: 1.312 kB / 0.5354 GB, free: 9.07 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.589e-06/0.3315, allocations: 3.984 kB / 0.5354 GB, free: 9.066 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003388/0.3318, allocations: 356 kB / 0.5358 GB, free: 8.703 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.243e-06/0.3318, allocations: 1.281 kB / 0.5358 GB, free: 8.703 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.827e-05/0.3319, allocations: 7.516 kB / 0.5358 GB, free: 8.699 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.555e-06/0.3319, allocations: 0 / 0.5358 GB, free: 8.699 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.031e-05/0.3319, allocations: 1.188 kB / 0.5358 GB, free: 8.699 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.854e-06/0.3319, allocations: 1.312 kB / 0.5358 GB, free: 8.699 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.422e-06/0.3319, allocations: 0 / 0.5358 GB, free: 8.699 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002215/0.3322, allocations: 193.3 kB / 0.536 GB, free: 8.531 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.074e-05/0.3322, allocations: 87.47 kB / 0.536 GB, free: 8.43 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.931e-05/0.3323, allocations: 5.344 kB / 0.536 GB, free: 8.426 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.56e-05/0.3323, allocations: 7.422 kB / 0.5361 GB, free: 8.422 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.193e-05/0.3324, allocations: 12.02 kB / 0.5361 GB, free: 8.414 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.861e-06/0.3324, allocations: 1.438 kB / 0.5361 GB, free: 8.414 MB / 398.1 MB Notification: Performance of sorting global known variables: time 7.867e-05/0.3325, allocations: 106.5 kB / 0.5362 GB, free: 8.324 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3325, allocations: 0 / 0.5362 GB, free: 8.324 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002181/0.3327, allocations: 12 kB / 0.5362 GB, free: 8.324 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.0004986/0.3332, allocations: 0.7239 MB / 0.5369 GB, free: 7.625 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001238/0.3334, allocations: 43.8 kB / 0.5369 GB, free: 7.609 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.3334, allocations: 1 kB / 0.5369 GB, free: 7.609 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 5.341e-05/0.3334, allocations: 25.39 kB / 0.537 GB, free: 7.598 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002941/0.3337, allocations: 26.17 kB / 0.537 GB, free: 7.582 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001543/0.3353, allocations: 1.529 MB / 0.5385 GB, free: 6.18 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003199/0.3356, allocations: 0.6968 MB / 0.5392 GB, free: 5.473 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 3.352e-05/0.3357, allocations: 9.906 kB / 0.5392 GB, free: 5.469 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.66e-05/0.3357, allocations: 28.48 kB / 0.5392 GB, free: 5.445 MB / 398.1 MB Notification: Performance of SimCode: time 2.4e-07/0.3357, allocations: 3.938 kB / 0.5392 GB, free: 5.441 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02464/0.3604, allocations: 2.22 MB / 0.5414 GB, free: 4.25 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.709/8.07, allocations: 10.39 kB / 0.5414 GB, free: 4.246 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) Reference file matches