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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001448/0.001448, allocations: 107.8 kB / 20.48 MB, free: 1.125 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001647/0.001647, allocations: 212.2 kB / 23.78 MB, free: 4.328 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.587/1.587, allocations: 230.5 MB / 257.4 MB, free: 7.723 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2459/0.2459, allocations: 46.96 MB / 360.9 MB, free: 3.863 MB / 286.1 MB " [Timeout remaining time 179] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00237/0.00237, allocations: 80.16 kB / 0.4962 GB, free: 7.488 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3401/0.3425, allocations: 66.08 MB / 0.5607 GB, free: 3.973 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.0032/0.3457, allocations: 1.617 MB / 0.5623 GB, free: 2.348 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001205/0.3469, allocations: 0.5638 MB / 0.5629 GB, free: 1.781 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.707e-05/0.347, allocations: 4 kB / 0.5629 GB, free: 1.777 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001236/0.3471, allocations: 7.875 kB / 0.5629 GB, free: 1.77 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.039e-05/0.3472, allocations: 11.88 kB / 0.5629 GB, free: 1.758 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003785/0.3475, allocations: 99.73 kB / 0.563 GB, free: 1.66 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.000191/0.3477, allocations: 107.8 kB / 0.5631 GB, free: 1.555 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001281/0.3479, allocations: 27.95 kB / 0.5631 GB, free: 1.527 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001157/0.348, allocations: 47.84 kB / 0.5632 GB, free: 1.48 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.852e-05/0.3481, allocations: 35.78 kB / 0.5632 GB, free: 1.445 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.463e-05/0.3481, allocations: 8 kB / 0.5632 GB, free: 1.438 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.728e-05/0.3481, allocations: 8 kB / 0.5632 GB, free: 1.43 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.914e-05/0.3481, allocations: 23.92 kB / 0.5632 GB, free: 1.406 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 6.42e-05/0.3482, allocations: 39.78 kB / 0.5633 GB, free: 1.367 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001779/0.3484, allocations: 87.58 kB / 0.5634 GB, free: 1.281 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.422e-06/0.3484, allocations: 3.984 kB / 0.5634 GB, free: 1.277 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.754e-06/0.3484, allocations: 3.938 kB / 0.5634 GB, free: 1.273 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.06e-06/0.3484, allocations: 0 / 0.5634 GB, free: 1.273 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.0006751/0.3491, allocations: 350.8 kB / 0.5637 GB, free: 0.8984 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.196e-05/0.3491, allocations: 12.03 kB / 0.5637 GB, free: 0.8867 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.183e-05/0.3492, allocations: 34.75 kB / 0.5637 GB, free: 0.8438 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.475e-05/0.3492, allocations: 16.89 kB / 0.5638 GB, free: 0.8281 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002568/0.3494, allocations: 150.3 kB / 0.5639 GB, free: 0.6562 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.692e-05/0.3495, allocations: 4.375 kB / 0.5639 GB, free: 0.6523 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.322e-05/0.3495, allocations: 8.375 kB / 0.5639 GB, free: 0.6445 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000329/0.3498, allocations: 107.5 kB / 0.564 GB, free: 0.5352 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.767e-06/0.3498, allocations: 0 / 0.564 GB, free: 0.5352 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.06e-05/0.3498, allocations: 4 kB / 0.564 GB, free: 0.5312 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.498e-06/0.3498, allocations: 4 kB / 0.564 GB, free: 0.5273 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001737/0.35, allocations: 51.91 kB / 0.5641 GB, free: 488 kB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007434/0.3508, allocations: 339.6 kB / 0.5644 GB, free: 104 kB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003764/0.3511, allocations: 98.52 kB / 0.5645 GB, free: 16 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001226/0.3513, allocations: 36.91 kB / 0.5645 GB, free: 15.96 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.444e-05/0.3513, allocations: 0 / 0.5645 GB, free: 15.96 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002711/0.3515, allocations: 103.3 kB / 0.5646 GB, free: 15.84 MB / 414.1 MB Notification: Performance of pre-optimization done (n=7): time 1.453e-06/0.3515, allocations: 0 / 0.5646 GB, free: 15.84 MB / 414.1 MB Notification: Performance of matching and sorting (n=7): time 0.0005206/0.3521, allocations: 149.5 kB / 0.5648 GB, free: 15.69 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.293e-05/0.3521, allocations: 51.41 kB / 0.5648 GB, free: 15.63 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000149/0.3523, allocations: 145.8 kB / 0.565 GB, free: 15.48 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.995e-05/0.3523, allocations: 33.64 kB / 0.565 GB, free: 15.44 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.499e-05/0.3524, allocations: 100.1 kB / 0.5651 GB, free: 15.34 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.284e-05/0.3524, allocations: 23.92 kB / 0.5651 GB, free: 15.31 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.681e-05/0.3525, allocations: 25.72 kB / 0.5651 GB, free: 15.28 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002274/0.3527, allocations: 322.8 kB / 0.5654 GB, free: 14.96 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001324/0.3528, allocations: 39.91 kB / 0.5655 GB, free: 14.92 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001373/0.353, allocations: 49.69 kB / 0.5655 GB, free: 14.86 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002208/0.3532, allocations: 69.69 kB / 0.5656 GB, free: 14.79 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.013e-06/0.3532, allocations: 0 / 0.5656 GB, free: 14.79 MB / 414.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0003131/0.3535, allocations: 129.5 kB / 0.5657 GB, free: 14.66 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.951e-05/0.3535, allocations: 14.56 kB / 0.5657 GB, free: 14.64 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.318e-06/0.3535, allocations: 0 / 0.5657 GB, free: 14.64 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.375e-05/0.3535, allocations: 0 / 0.5657 GB, free: 14.64 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001039/0.3536, allocations: 19.92 kB / 0.5658 GB, free: 14.62 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.36e-06/0.3536, allocations: 4.031 kB / 0.5658 GB, free: 14.62 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001013/0.3537, allocations: 19.98 kB / 0.5658 GB, free: 14.6 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.221e-06/0.3537, allocations: 0 / 0.5658 GB, free: 14.6 MB / 414.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,integrator.reset,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,change.u,$PRE.change.u,$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.0001005/0.3538, allocations: 117.8 kB / 0.5659 GB, free: 14.48 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.426e-05/0.3539, allocations: 15.84 kB / 0.5659 GB, free: 14.46 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.238e-05/0.3539, allocations: 16.72 kB / 0.5659 GB, free: 14.44 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.264e-06/0.3539, allocations: 0 / 0.5659 GB, free: 14.44 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.863e-06/0.3539, allocations: 3.984 kB / 0.5659 GB, free: 14.43 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.209e-06/0.3539, allocations: 4 kB / 0.5659 GB, free: 14.43 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006467/0.3546, allocations: 353.5 kB / 0.5663 GB, free: 14.04 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.904e-06/0.3546, allocations: 0 / 0.5663 GB, free: 14.04 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.24e-05/0.3547, allocations: 11.98 kB / 0.5663 GB, free: 14.02 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.472e-06/0.3547, allocations: 7.984 kB / 0.5663 GB, free: 14.02 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.112e-05/0.3547, allocations: 0 / 0.5663 GB, free: 14.02 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.373e-06/0.3547, allocations: 0 / 0.5663 GB, free: 14.02 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.3547, allocations: 4 kB / 0.5663 GB, free: 14.01 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004929/0.3552, allocations: 255.7 kB / 0.5665 GB, free: 13.75 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.404e-05/0.3552, allocations: 15.94 kB / 0.5665 GB, free: 13.73 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.835e-05/0.3552, allocations: 3.938 kB / 0.5665 GB, free: 13.73 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001497/0.3554, allocations: 24.03 kB / 0.5666 GB, free: 13.7 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.121e-05/0.3554, allocations: 15.97 kB / 0.5666 GB, free: 13.69 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.756e-06/0.3555, allocations: 4 kB / 0.5666 GB, free: 13.68 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001007/0.3556, allocations: 110.6 kB / 0.5667 GB, free: 13.58 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3556, allocations: 0 / 0.5667 GB, free: 13.58 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002461/0.3558, allocations: 19.94 kB / 0.5667 GB, free: 13.56 MB / 414.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,change.u,booleanPulse.pulseStart) * 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.000867/0.3567, allocations: 0.7787 MB / 0.5675 GB, free: 12.75 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0003041/0.357, allocations: 75.89 kB / 0.5675 GB, free: 12.68 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.255e-06/0.357, allocations: 128 / 0.5675 GB, free: 12.68 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001694/0.3571, allocations: 47.95 kB / 0.5676 GB, free: 12.63 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003149/0.3575, allocations: 19.98 kB / 0.5676 GB, free: 12.61 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002652/0.3601, allocations: 1.7 MB / 0.5693 GB, free: 10.83 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001309/0.3602, allocations: 81.31 kB / 0.5694 GB, free: 10.73 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 4.463e-05/0.3603, allocations: 8.5 kB / 0.5694 GB, free: 10.72 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.004e-05/0.3604, allocations: 35.42 kB / 0.5694 GB, free: 10.68 MB / 414.1 MB Notification: Performance of SimCode: time 4.3e-07/0.3604, allocations: 0 / 0.5694 GB, free: 10.68 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03167/0.392, allocations: 3.316 MB / 0.5726 GB, free: 7.465 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.08/11.47, allocations: 19.5 kB / 0.5726 GB, free: 7.449 MB / 414.1 MB " [Timeout remaining time 648] (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.000995025 ModelicaTest_trunk_ModelicaTest_Blocks_LimResetIntegrator.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.805114837829024]