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.001323/0.001323, 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.001577/0.001577, allocations: 199.9 kB / 18.73 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.401/1.401, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2243/0.2243, allocations: 46.1 MB / 344.3 MB, free: 11.51 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001394/0.001394, allocations: 71.88 kB / 480.8 MB, free: 4.586 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3582/0.3596, allocations: 62.44 MB / 0.5305 GB, free: 13.4 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.002853/0.3625, allocations: 1.622 MB / 0.5321 GB, free: 12.13 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009484/0.3635, allocations: 0.5092 MB / 0.5326 GB, free: 11.73 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.137e-05/0.3636, allocations: 5.844 kB / 0.5326 GB, free: 11.72 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001209/0.3637, allocations: 11.86 kB / 0.5326 GB, free: 11.71 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 4.868e-05/0.3638, allocations: 9.906 kB / 0.5326 GB, free: 11.7 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001819/0.364, allocations: 33.86 kB / 0.5327 GB, free: 11.68 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001414/0.3641, allocations: 79.61 kB / 0.5327 GB, free: 11.63 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001291/0.3643, allocations: 40.17 kB / 0.5328 GB, free: 11.6 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.757e-05/0.3643, allocations: 24.98 kB / 0.5328 GB, free: 11.58 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.536e-05/0.3644, allocations: 39.42 kB / 0.5328 GB, free: 11.55 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.514e-05/0.3644, allocations: 6.75 kB / 0.5328 GB, free: 11.55 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.427e-05/0.3644, allocations: 8.875 kB / 0.5328 GB, free: 11.55 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.657e-05/0.3645, allocations: 15.48 kB / 0.5329 GB, free: 11.54 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 5.165e-05/0.3645, allocations: 31.62 kB / 0.5329 GB, free: 11.51 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001368/0.3647, allocations: 74.03 kB / 0.533 GB, free: 11.46 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.3647, allocations: 0 / 0.533 GB, free: 11.46 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.705e-06/0.3647, allocations: 4 kB / 0.533 GB, free: 11.46 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.829e-06/0.3647, allocations: 3.938 kB / 0.533 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0005398/0.3653, allocations: 397.1 kB / 0.5333 GB, free: 11.05 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.784e-05/0.3653, allocations: 10.5 kB / 0.5334 GB, free: 11.05 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.887e-05/0.3653, allocations: 40.52 kB / 0.5334 GB, free: 11 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.206e-05/0.3654, allocations: 10.45 kB / 0.5334 GB, free: 11 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000238/0.3656, allocations: 198.9 kB / 0.5336 GB, free: 10.77 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.101e-05/0.3656, allocations: 8 kB / 0.5336 GB, free: 10.77 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.97e-05/0.3657, allocations: 9.75 kB / 0.5336 GB, free: 10.77 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001484/0.3658, allocations: 75.27 kB / 0.5337 GB, free: 10.71 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.315e-05/0.3659, allocations: 0 / 0.5337 GB, free: 10.71 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.367e-05/0.3659, allocations: 0 / 0.5337 GB, free: 10.71 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.12e-06/0.3659, allocations: 1.938 kB / 0.5337 GB, free: 10.71 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.805e-05/0.366, allocations: 37.38 kB / 0.5337 GB, free: 10.69 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005533/0.3666, allocations: 359.7 kB / 0.5341 GB, free: 10.34 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001073/0.3667, allocations: 48.69 kB / 0.5341 GB, free: 10.3 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.43e-05/0.3667, allocations: 18.3 kB / 0.5341 GB, free: 10.28 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.829e-06/0.3667, allocations: 1.375 kB / 0.5341 GB, free: 10.28 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001238/0.3669, allocations: 66.56 kB / 0.5342 GB, free: 10.22 MB / 398.1 MB Notification: Performance of pre-optimization done (n=7): time 1.423e-06/0.3669, allocations: 0 / 0.5342 GB, free: 10.22 MB / 398.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002194/0.3671, allocations: 90.56 kB / 0.5343 GB, free: 10.16 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.395e-05/0.3671, allocations: 52.78 kB / 0.5343 GB, free: 10.09 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001097/0.3673, allocations: 140.9 kB / 0.5345 GB, free: 9.973 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.915e-05/0.3673, allocations: 31.08 kB / 0.5345 GB, free: 9.938 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.28e-05/0.3674, allocations: 102.8 kB / 0.5346 GB, free: 9.836 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.07e-05/0.3674, allocations: 20.11 kB / 0.5346 GB, free: 9.82 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.429e-05/0.3674, allocations: 24.58 kB / 0.5346 GB, free: 9.797 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001033/0.3675, allocations: 321.6 kB / 0.5349 GB, free: 9.477 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.253e-05/0.3676, allocations: 20.25 kB / 0.535 GB, free: 9.465 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.926e-05/0.3676, allocations: 34.94 kB / 0.535 GB, free: 9.434 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.91e-05/0.3677, allocations: 48.39 kB / 0.535 GB, free: 9.395 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.853e-06/0.3677, allocations: 192 / 0.535 GB, free: 9.395 MB / 398.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001339/0.3679, allocations: 91.91 kB / 0.5351 GB, free: 9.332 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.228e-05/0.3679, allocations: 17.44 kB / 0.5351 GB, free: 9.32 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.991e-06/0.3679, allocations: 3.938 kB / 0.5351 GB, free: 9.316 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.275e-05/0.3679, allocations: 1.375 kB / 0.5351 GB, free: 9.316 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.151e-05/0.368, allocations: 10.86 kB / 0.5352 GB, free: 9.312 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.381e-06/0.368, allocations: 1.375 kB / 0.5352 GB, free: 9.312 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.186e-05/0.3681, allocations: 8.125 kB / 0.5352 GB, free: 9.309 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.024e-05/0.3681, allocations: 6.75 kB / 0.5352 GB, free: 9.305 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.288e-05/0.3682, allocations: 125.5 kB / 0.5353 GB, free: 9.18 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.58e-05/0.3682, allocations: 16.06 kB / 0.5353 GB, free: 9.168 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.368e-05/0.3682, allocations: 14.03 kB / 0.5353 GB, free: 9.152 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.683e-06/0.3682, allocations: 1.375 kB / 0.5353 GB, free: 9.152 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.268e-06/0.3682, allocations: 1.375 kB / 0.5353 GB, free: 9.152 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.865e-06/0.3682, allocations: 0 / 0.5353 GB, free: 9.152 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003158/0.3686, allocations: 349.5 kB / 0.5357 GB, free: 8.797 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.222e-06/0.3686, allocations: 0 / 0.5357 GB, free: 8.797 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.763e-05/0.3686, allocations: 8.062 kB / 0.5357 GB, free: 8.793 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.024e-06/0.3686, allocations: 0 / 0.5357 GB, free: 8.793 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.279e-05/0.3687, allocations: 5.359 kB / 0.5357 GB, free: 8.789 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.293e-06/0.3687, allocations: 4 kB / 0.5357 GB, free: 8.785 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.3687, allocations: 0 / 0.5357 GB, free: 8.785 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002001/0.3689, allocations: 198 kB / 0.5359 GB, free: 8.613 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.266e-05/0.3689, allocations: 87.75 kB / 0.5359 GB, free: 8.512 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.062e-05/0.369, allocations: 5.375 kB / 0.536 GB, free: 8.508 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.831e-05/0.369, allocations: 6.734 kB / 0.536 GB, free: 8.504 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.562e-05/0.3691, allocations: 4.125 kB / 0.536 GB, free: 8.504 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.332e-06/0.3691, allocations: 5.438 kB / 0.536 GB, free: 8.5 MB / 398.1 MB Notification: Performance of sorting global known variables: time 7.012e-05/0.3692, allocations: 110.1 kB / 0.5361 GB, free: 8.41 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3692, allocations: 0 / 0.5361 GB, free: 8.41 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002302/0.3694, allocations: 15 kB / 0.5361 GB, free: 8.406 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.000453/0.3699, allocations: 0.7243 MB / 0.5368 GB, free: 7.707 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001324/0.37, allocations: 47.39 kB / 0.5368 GB, free: 7.688 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.37, allocations: 1.344 kB / 0.5368 GB, free: 7.688 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 5.277e-05/0.3701, allocations: 22.14 kB / 0.5369 GB, free: 7.68 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003/0.3704, allocations: 19.86 kB / 0.5369 GB, free: 7.668 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001421/0.3718, allocations: 1.528 MB / 0.5384 GB, free: 6.262 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002376/0.3721, allocations: 0.693 MB / 0.539 GB, free: 5.559 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 4.336e-05/0.3721, allocations: 9.453 kB / 0.5391 GB, free: 5.555 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.635e-05/0.3722, allocations: 28.8 kB / 0.5391 GB, free: 5.531 MB / 398.1 MB Notification: Performance of SimCode: time 2.41e-07/0.3722, allocations: 0 / 0.5391 GB, free: 5.531 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01877/0.391, allocations: 2.217 MB / 0.5413 GB, free: 4.336 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.528/7.919, allocations: 9.703 kB / 0.5413 GB, free: 4.332 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 & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 ModelicaTest_trunk_ModelicaTest_Blocks_ResetHoldIntegrator.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator_res.csv","/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