Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Blocks.LimResetIntegrator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001346/0.001346, allocations: 115.9 kB / 20.43 MB, free: 1.449 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001507/0.001507, allocations: 213.4 kB / 23.74 MB, free: 4.656 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.545/1.545, allocations: 230.6 MB / 257.5 MB, free: 8.004 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2256/0.2256, allocations: 46.93 MB / 360.9 MB, free: 4.371 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.LimResetIntegrator,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Blocks_LimResetIntegrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.LimResetIntegrator,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Blocks_LimResetIntegrator",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00206/0.00206, allocations: 67.91 kB / 0.4961 GB, free: 7.938 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3617/0.3637, allocations: 66.03 MB / 0.5606 GB, free: 4.492 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.00323/0.367, allocations: 1.659 MB / 0.5623 GB, free: 2.82 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00119/0.3682, allocations: 0.6066 MB / 0.5628 GB, free: 2.211 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.548e-05/0.3683, allocations: 7.938 kB / 0.5629 GB, free: 2.203 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000138/0.3684, allocations: 11.86 kB / 0.5629 GB, free: 2.191 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.654e-05/0.3684, allocations: 7.875 kB / 0.5629 GB, free: 2.184 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003689/0.3688, allocations: 91.75 kB / 0.563 GB, free: 2.094 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001813/0.369, allocations: 111.8 kB / 0.5631 GB, free: 1.984 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001187/0.3691, allocations: 27.95 kB / 0.5631 GB, free: 1.957 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.848e-05/0.3692, allocations: 43.86 kB / 0.5631 GB, free: 1.914 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.252e-05/0.3693, allocations: 43.77 kB / 0.5632 GB, free: 1.871 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.956e-05/0.3693, allocations: 12 kB / 0.5632 GB, free: 1.859 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.552e-05/0.3693, allocations: 12 kB / 0.5632 GB, free: 1.848 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.66e-05/0.3694, allocations: 15.92 kB / 0.5632 GB, free: 1.832 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 5.907e-05/0.3694, allocations: 43.73 kB / 0.5633 GB, free: 1.789 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001693/0.3696, allocations: 91.56 kB / 0.5633 GB, free: 1.699 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.649e-06/0.3696, allocations: 4 kB / 0.5633 GB, free: 1.695 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.3696, allocations: 0 / 0.5633 GB, free: 1.695 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.631e-06/0.3696, allocations: 0 / 0.5633 GB, free: 1.695 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.0006936/0.3703, allocations: 354.7 kB / 0.5637 GB, free: 1.316 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.096e-05/0.3703, allocations: 8.031 kB / 0.5637 GB, free: 1.309 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.512e-05/0.3704, allocations: 42.73 kB / 0.5637 GB, free: 1.258 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.596e-05/0.3704, allocations: 8.891 kB / 0.5637 GB, free: 1.25 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002996/0.3707, allocations: 145.2 kB / 0.5639 GB, free: 1.086 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.812e-05/0.3707, allocations: 8.312 kB / 0.5639 GB, free: 1.078 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.731e-05/0.3708, allocations: 8.375 kB / 0.5639 GB, free: 1.07 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002932/0.3711, allocations: 105.7 kB / 0.564 GB, free: 0.9609 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.859e-06/0.3711, allocations: 0 / 0.564 GB, free: 0.9609 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.723e-05/0.3711, allocations: 11.98 kB / 0.564 GB, free: 0.9492 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.539e-06/0.3711, allocations: 0 / 0.564 GB, free: 0.9492 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001664/0.3713, allocations: 55.95 kB / 0.5641 GB, free: 0.8945 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007186/0.372, allocations: 355.6 kB / 0.5644 GB, free: 0.5039 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003369/0.3723, allocations: 102.5 kB / 0.5645 GB, free: 404 kB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001111/0.3724, allocations: 36.92 kB / 0.5645 GB, free: 364 kB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.152e-05/0.3724, allocations: 0 / 0.5645 GB, free: 364 kB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002564/0.3727, allocations: 103.3 kB / 0.5646 GB, free: 248 kB / 398.1 MB Notification: Performance of pre-optimization done (n=7): time 1.243e-06/0.3727, allocations: 0 / 0.5646 GB, free: 248 kB / 398.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004524/0.3731, allocations: 149.5 kB / 0.5648 GB, free: 92 kB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.784e-05/0.3732, allocations: 55.39 kB / 0.5648 GB, free: 24 kB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001522/0.3733, allocations: 143.4 kB / 0.565 GB, free: 15.87 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.736e-05/0.3734, allocations: 33.7 kB / 0.565 GB, free: 15.83 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.885e-05/0.3734, allocations: 104.1 kB / 0.5651 GB, free: 15.73 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.546e-05/0.3735, allocations: 15.94 kB / 0.5651 GB, free: 15.71 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.193e-05/0.3735, allocations: 33.64 kB / 0.5651 GB, free: 15.67 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001464/0.3737, allocations: 322.8 kB / 0.5654 GB, free: 15.35 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001256/0.3738, allocations: 35.98 kB / 0.5655 GB, free: 15.31 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001294/0.3739, allocations: 53.62 kB / 0.5655 GB, free: 15.25 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002146/0.3741, allocations: 77.67 kB / 0.5656 GB, free: 15.17 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.3741, allocations: 0 / 0.5656 GB, free: 15.17 MB / 414.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.000293/0.3744, allocations: 121.7 kB / 0.5657 GB, free: 15.05 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.764e-05/0.3744, allocations: 7.938 kB / 0.5657 GB, free: 15.04 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.25e-06/0.3744, allocations: 4.031 kB / 0.5657 GB, free: 15.04 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.77e-05/0.3745, allocations: 4 kB / 0.5657 GB, free: 15.03 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001143/0.3746, allocations: 23.92 kB / 0.5658 GB, free: 15.01 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.38e-06/0.3746, allocations: 0 / 0.5658 GB, free: 15.01 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.076e-05/0.3747, allocations: 11.98 kB / 0.5658 GB, free: 15 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.816e-06/0.3747, allocations: 4 kB / 0.5658 GB, free: 14.99 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.0001056/0.3748, allocations: 121.8 kB / 0.5659 GB, free: 14.86 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.245e-05/0.3748, allocations: 15.84 kB / 0.5659 GB, free: 14.85 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.994e-05/0.3749, allocations: 16.7 kB / 0.5659 GB, free: 14.82 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.084e-06/0.3749, allocations: 0 / 0.5659 GB, free: 14.82 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.737e-06/0.3749, allocations: 0 / 0.5659 GB, free: 14.82 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.086e-06/0.3749, allocations: 0 / 0.5659 GB, free: 14.82 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005426/0.3754, allocations: 365.4 kB / 0.5663 GB, free: 14.42 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.3754, allocations: 0 / 0.5663 GB, free: 14.42 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.97e-05/0.3755, allocations: 15.98 kB / 0.5663 GB, free: 14.41 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.874e-06/0.3755, allocations: 0 / 0.5663 GB, free: 14.41 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.256e-05/0.3755, allocations: 4 kB / 0.5663 GB, free: 14.4 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.703e-06/0.3755, allocations: 0 / 0.5663 GB, free: 14.4 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.3755, allocations: 0 / 0.5663 GB, free: 14.4 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004666/0.376, allocations: 259.3 kB / 0.5665 GB, free: 14.13 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.959e-05/0.376, allocations: 11.94 kB / 0.5666 GB, free: 14.12 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.91e-05/0.376, allocations: 0 / 0.5666 GB, free: 14.12 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001388/0.3762, allocations: 24.03 kB / 0.5666 GB, free: 14.1 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.438e-05/0.3762, allocations: 11.98 kB / 0.5666 GB, free: 14.09 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.468e-06/0.3762, allocations: 7.938 kB / 0.5666 GB, free: 14.08 MB / 414.1 MB Notification: Performance of sorting global known variables: time 8.401e-05/0.3763, allocations: 114.4 kB / 0.5667 GB, free: 13.97 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3763, allocations: 0 / 0.5667 GB, free: 13.97 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002344/0.3765, allocations: 19.94 kB / 0.5667 GB, free: 13.95 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.0008894/0.3774, allocations: 0.7787 MB / 0.5675 GB, free: 13.14 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0002941/0.3777, allocations: 76.02 kB / 0.5676 GB, free: 13.07 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.3777, allocations: 0 / 0.5676 GB, free: 13.07 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001402/0.3779, allocations: 47.91 kB / 0.5676 GB, free: 13.02 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003166/0.3782, allocations: 18.56 kB / 0.5676 GB, free: 13.01 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002563/0.3807, allocations: 1.698 MB / 0.5693 GB, free: 11.22 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003231/0.3811, allocations: 0.704 MB / 0.57 GB, free: 10.49 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 4.48e-05/0.3811, allocations: 8.484 kB / 0.57 GB, free: 10.48 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.148e-05/0.3812, allocations: 35.42 kB / 0.57 GB, free: 10.45 MB / 414.1 MB Notification: Performance of SimCode: time 2.9e-07/0.3812, allocations: 0 / 0.57 GB, free: 10.45 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03131/0.4125, allocations: 2.767 MB / 0.5727 GB, free: 7.809 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.06/11.48, allocations: 7.938 kB / 0.5727 GB, free: 7.801 MB / 414.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_4.1.0_ModelicaTest.Blocks.LimResetIntegrator.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Blocks.LimResetIntegrator.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Blocks.LimResetIntegrator.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Blocks.LimResetIntegrator.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0_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_4_1_0_ModelicaTest_Blocks_LimResetIntegrator.fmu > ModelicaTest_4.1.0_ModelicaTest.Blocks.LimResetIntegrator.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_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_4.1.0_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.671971618998214]