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.001451/0.001451, allocations: 118.2 kB / 17.78 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001625/0.001625, allocations: 206 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.628/1.628, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2676/0.2676, allocations: 46.1 MB / 344.3 MB, free: 11.52 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002374/0.002375, allocations: 79.88 kB / 480.8 MB, free: 4.59 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4918/0.4943, allocations: 62.43 MB / 0.5305 GB, free: 13.42 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.00396/0.4983, allocations: 1.647 MB / 0.5321 GB, free: 12.13 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001466/0.4998, allocations: 0.5827 MB / 0.5327 GB, free: 11.67 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001518/0.5, allocations: 2.344 kB / 0.5327 GB, free: 11.67 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001415/0.5001, allocations: 15.86 kB / 0.5327 GB, free: 11.66 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 7.819e-05/0.5002, allocations: 10.22 kB / 0.5327 GB, free: 11.65 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004429/0.5007, allocations: 94.84 kB / 0.5328 GB, free: 11.58 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002233/0.5009, allocations: 110.3 kB / 0.5329 GB, free: 11.52 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001459/0.5011, allocations: 28.81 kB / 0.5329 GB, free: 11.5 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001346/0.5012, allocations: 48.34 kB / 0.533 GB, free: 11.47 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.198e-05/0.5013, allocations: 39.97 kB / 0.533 GB, free: 11.44 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 3.067e-05/0.5014, allocations: 8.812 kB / 0.533 GB, free: 11.44 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.717e-05/0.5014, allocations: 7.594 kB / 0.533 GB, free: 11.44 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.388e-05/0.5014, allocations: 27.62 kB / 0.5331 GB, free: 11.41 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 6.388e-05/0.5015, allocations: 39.64 kB / 0.5331 GB, free: 11.38 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001978/0.5017, allocations: 95.53 kB / 0.5332 GB, free: 11.31 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.5017, allocations: 0 / 0.5332 GB, free: 11.31 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.284e-06/0.5017, allocations: 1.438 kB / 0.5332 GB, free: 11.31 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.336e-06/0.5018, allocations: 0 / 0.5332 GB, free: 11.31 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.000778/0.5025, allocations: 420.3 kB / 0.5336 GB, free: 10.89 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.289e-05/0.5026, allocations: 8.906 kB / 0.5336 GB, free: 10.89 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.467e-05/0.5027, allocations: 37.09 kB / 0.5336 GB, free: 10.85 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.424e-05/0.5028, allocations: 10.08 kB / 0.5336 GB, free: 10.85 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004229/0.5032, allocations: 205.7 kB / 0.5338 GB, free: 10.62 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.8e-05/0.5032, allocations: 9.062 kB / 0.5338 GB, free: 10.62 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.26e-05/0.5033, allocations: 8.938 kB / 0.5339 GB, free: 10.61 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003371/0.5036, allocations: 104.6 kB / 0.534 GB, free: 10.54 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.115e-05/0.5036, allocations: 0 / 0.534 GB, free: 10.54 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.888e-05/0.5037, allocations: 9.781 kB / 0.534 GB, free: 10.54 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.033e-06/0.5037, allocations: 1.656 kB / 0.534 GB, free: 10.54 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001831/0.5039, allocations: 52.91 kB / 0.534 GB, free: 10.51 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008158/0.5047, allocations: 392.1 kB / 0.5344 GB, free: 10.14 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003556/0.5051, allocations: 104.2 kB / 0.5345 GB, free: 10.08 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001249/0.5052, allocations: 32.09 kB / 0.5345 GB, free: 10.07 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.43e-05/0.5052, allocations: 0 / 0.5345 GB, free: 10.07 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002857/0.5055, allocations: 104.3 kB / 0.5346 GB, free: 9.984 MB / 398.1 MB Notification: Performance of pre-optimization done (n=7): time 1.773e-06/0.5055, allocations: 0 / 0.5346 GB, free: 9.984 MB / 398.1 MB Notification: Performance of matching and sorting (n=7): time 0.0005127/0.5061, allocations: 143.6 kB / 0.5348 GB, free: 9.906 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.478e-05/0.5061, allocations: 52.78 kB / 0.5348 GB, free: 9.844 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001554/0.5063, allocations: 150.1 kB / 0.5349 GB, free: 9.719 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.479e-05/0.5063, allocations: 31.08 kB / 0.535 GB, free: 9.684 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001471/0.5065, allocations: 104.2 kB / 0.5351 GB, free: 9.582 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.111e-05/0.5065, allocations: 18.61 kB / 0.5351 GB, free: 9.566 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.932e-05/0.5066, allocations: 33.97 kB / 0.5351 GB, free: 9.535 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001327/0.5067, allocations: 325.5 kB / 0.5354 GB, free: 9.211 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001294/0.5069, allocations: 32.59 kB / 0.5355 GB, free: 9.199 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001354/0.507, allocations: 57 kB / 0.5355 GB, free: 9.16 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002592/0.5073, allocations: 73.69 kB / 0.5356 GB, free: 9.121 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.046e-06/0.5073, allocations: 0 / 0.5356 GB, free: 9.121 MB / 398.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0003364/0.5076, allocations: 124.7 kB / 0.5357 GB, free: 9.047 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.976e-05/0.5077, allocations: 9.875 kB / 0.5357 GB, free: 9.043 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.596e-06/0.5077, allocations: 1.219 kB / 0.5357 GB, free: 9.043 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.198e-05/0.5077, allocations: 0 / 0.5357 GB, free: 9.043 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001211/0.5078, allocations: 19.58 kB / 0.5357 GB, free: 9.035 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.025e-06/0.5078, allocations: 1.719 kB / 0.5357 GB, free: 9.035 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001116/0.508, allocations: 26.28 kB / 0.5358 GB, free: 9.02 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.534e-05/0.508, allocations: 5.688 kB / 0.5358 GB, free: 9.016 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.0001461/0.5081, allocations: 118.3 kB / 0.5359 GB, free: 8.898 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.236e-05/0.5082, allocations: 16.53 kB / 0.5359 GB, free: 8.887 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.509e-05/0.5082, allocations: 14.88 kB / 0.5359 GB, free: 8.871 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.35e-06/0.5083, allocations: 5.016 kB / 0.5359 GB, free: 8.867 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.861e-06/0.5083, allocations: 0.6562 kB / 0.5359 GB, free: 8.867 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.877e-06/0.5083, allocations: 0 / 0.5359 GB, free: 8.867 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007384/0.509, allocations: 394.5 kB / 0.5363 GB, free: 8.492 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.495e-06/0.509, allocations: 0 / 0.5363 GB, free: 8.492 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.326e-05/0.5091, allocations: 13.11 kB / 0.5363 GB, free: 8.488 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.158e-06/0.5091, allocations: 1.062 kB / 0.5363 GB, free: 8.488 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.097e-05/0.5092, allocations: 1.219 kB / 0.5363 GB, free: 8.488 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.435e-06/0.5092, allocations: 0 / 0.5363 GB, free: 8.488 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.954e-06/0.5092, allocations: 400 / 0.5363 GB, free: 8.488 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000546/0.5097, allocations: 254.5 kB / 0.5366 GB, free: 8.297 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.651e-05/0.5098, allocations: 91.41 kB / 0.5366 GB, free: 8.191 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.008e-05/0.5099, allocations: 9.125 kB / 0.5366 GB, free: 8.184 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001431/0.51, allocations: 15.33 kB / 0.5367 GB, free: 8.18 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.222e-05/0.5101, allocations: 17.91 kB / 0.5367 GB, free: 8.168 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.229e-05/0.5101, allocations: 2.625 kB / 0.5367 GB, free: 8.168 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001009/0.5102, allocations: 109.6 kB / 0.5368 GB, free: 8.078 MB / 398.1 MB Notification: Performance of sort global known variables: time 4.5e-07/0.5102, allocations: 96 / 0.5368 GB, free: 8.078 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002633/0.5105, allocations: 25.69 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.0008752/0.5114, allocations: 0.7832 MB / 0.5376 GB, free: 7.344 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.000354/0.5118, allocations: 83.3 kB / 0.5377 GB, free: 7.312 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.957e-06/0.5118, allocations: 1.375 kB / 0.5377 GB, free: 7.312 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001527/0.5119, allocations: 43.03 kB / 0.5377 GB, free: 7.297 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003621/0.5123, allocations: 23.64 kB / 0.5377 GB, free: 7.281 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003238/0.5156, allocations: 1.687 MB / 0.5394 GB, free: 5.836 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003786/0.516, allocations: 0.7032 MB / 0.5401 GB, free: 5.125 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 7.293e-05/0.5161, allocations: 5.469 kB / 0.5401 GB, free: 5.125 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.742e-05/0.5162, allocations: 29.36 kB / 0.5401 GB, free: 5.102 MB / 398.1 MB Notification: Performance of SimCode: time 5.91e-07/0.5162, allocations: 0 / 0.5401 GB, free: 5.102 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02892/0.5451, allocations: 2.623 MB / 0.5427 GB, free: 3.715 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.845/8.39, allocations: 10.22 kB / 0.5427 GB, free: 3.707 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 & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator_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_LimResetIntegrator.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator_res.csv","/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) Reference file matches