Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Blocks.SelfResettingIntegrator.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.001292/0.001292, allocations: 112.2 kB / 21.22 MB, free: 0.75 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.002109/0.002109, allocations: 206.1 kB / 24.52 MB, free: 4.156 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.454/1.454, allocations: 230.6 MB / 258.3 MB, free: 8 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.261/0.261, allocations: 46.93 MB / 361.6 MB, free: 4.273 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.SelfResettingIntegrator,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Blocks_SelfResettingIntegrator",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.SelfResettingIntegrator,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Blocks_SelfResettingIntegrator",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001989/0.001989, allocations: 67.89 kB / 0.4969 GB, free: 7.922 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3707/0.3727, allocations: 66.03 MB / 0.5614 GB, free: 4.508 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.002392/0.375, allocations: 0.8164 MB / 0.5622 GB, free: 3.691 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002384/0.3753, allocations: 47.81 kB / 0.5623 GB, free: 3.645 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.638e-05/0.3754, allocations: 8 kB / 0.5623 GB, free: 3.637 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001315/0.3755, allocations: 7.922 kB / 0.5623 GB, free: 3.629 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 2.132e-05/0.3755, allocations: 3.938 kB / 0.5623 GB, free: 3.625 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001686/0.3757, allocations: 23.92 kB / 0.5623 GB, free: 3.602 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001461/0.3758, allocations: 35.86 kB / 0.5623 GB, free: 3.566 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001336/0.376, allocations: 17.81 kB / 0.5623 GB, free: 3.551 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.94e-05/0.376, allocations: 11.94 kB / 0.5624 GB, free: 3.539 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.052e-05/0.3761, allocations: 15.91 kB / 0.5624 GB, free: 3.523 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.525e-05/0.3761, allocations: 4 kB / 0.5624 GB, free: 3.52 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.488e-05/0.3761, allocations: 4 kB / 0.5624 GB, free: 3.516 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.344e-05/0.3761, allocations: 8 kB / 0.5624 GB, free: 3.508 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 4.565e-05/0.3762, allocations: 23.86 kB / 0.5624 GB, free: 3.484 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001492/0.3763, allocations: 35.77 kB / 0.5624 GB, free: 3.449 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.265e-06/0.3763, allocations: 4 kB / 0.5624 GB, free: 3.445 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.3763, allocations: 0 / 0.5624 GB, free: 3.445 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.835e-06/0.3763, allocations: 0 / 0.5624 GB, free: 3.445 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0005063/0.3768, allocations: 283.1 kB / 0.5627 GB, free: 3.133 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.572e-05/0.3769, allocations: 11.97 kB / 0.5627 GB, free: 3.121 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.894e-05/0.3769, allocations: 4.188 kB / 0.5627 GB, free: 3.117 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.756e-05/0.377, allocations: 34.75 kB / 0.5628 GB, free: 3.074 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.439e-05/0.377, allocations: 8.875 kB / 0.5628 GB, free: 3.066 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002268/0.3772, allocations: 118.5 kB / 0.5629 GB, free: 2.926 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.297e-05/0.3772, allocations: 4.375 kB / 0.5629 GB, free: 2.922 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.344e-05/0.3772, allocations: 4.375 kB / 0.5629 GB, free: 2.918 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001491/0.3774, allocations: 50 kB / 0.5629 GB, free: 2.863 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.786e-06/0.3774, allocations: 0 / 0.5629 GB, free: 2.863 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.259e-05/0.3774, allocations: 4 kB / 0.5629 GB, free: 2.859 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.019e-06/0.3774, allocations: 8 kB / 0.563 GB, free: 2.852 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.025e-05/0.3775, allocations: 15.94 kB / 0.563 GB, free: 2.836 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005852/0.3781, allocations: 263.8 kB / 0.5632 GB, free: 2.535 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.479e-05/0.3781, allocations: 22.52 kB / 0.5632 GB, free: 2.504 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.518e-05/0.3781, allocations: 16.91 kB / 0.5633 GB, free: 2.484 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.059e-05/0.3782, allocations: 0 / 0.5633 GB, free: 2.484 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001029/0.3783, allocations: 55.36 kB / 0.5633 GB, free: 2.418 MB / 398.1 MB Notification: Performance of pre-optimization done (n=3): time 8.71e-07/0.3783, allocations: 0 / 0.5633 GB, free: 2.418 MB / 398.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001673/0.3784, allocations: 49.69 kB / 0.5634 GB, free: 2.363 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.106e-05/0.3785, allocations: 55.34 kB / 0.5634 GB, free: 2.297 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001152/0.3786, allocations: 125.7 kB / 0.5635 GB, free: 2.164 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.899e-05/0.3786, allocations: 29.69 kB / 0.5636 GB, free: 2.129 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.922e-05/0.3787, allocations: 92.03 kB / 0.5637 GB, free: 2.035 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.522e-05/0.3787, allocations: 7.953 kB / 0.5637 GB, free: 2.027 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.572e-05/0.3787, allocations: 21.72 kB / 0.5637 GB, free: 2 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001479/0.3789, allocations: 318.8 kB / 0.564 GB, free: 1.68 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.778e-05/0.3789, allocations: 4 kB / 0.564 GB, free: 1.676 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.044e-05/0.3789, allocations: 21.72 kB / 0.564 GB, free: 1.648 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.455e-05/0.379, allocations: 25.7 kB / 0.564 GB, free: 1.617 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-06/0.379, allocations: 0 / 0.564 GB, free: 1.617 MB / 398.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 8.012e-05/0.379, allocations: 53.64 kB / 0.5641 GB, free: 1.559 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.655e-05/0.3791, allocations: 7.984 kB / 0.5641 GB, free: 1.551 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.953e-06/0.3791, allocations: 4 kB / 0.5641 GB, free: 1.547 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.702e-05/0.3791, allocations: 0 / 0.5641 GB, free: 1.547 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.365e-05/0.3791, allocations: 4 kB / 0.5641 GB, free: 1.543 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.46e-06/0.3791, allocations: 0 / 0.5641 GB, free: 1.543 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.345e-05/0.3792, allocations: 15.83 kB / 0.5641 GB, free: 1.527 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.552e-06/0.3792, allocations: 4 kB / 0.5641 GB, free: 1.523 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: 2 (greaterEqualThreshold.y,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * 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.416e-05/0.3793, allocations: 109.8 kB / 0.5642 GB, free: 1.406 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.29e-05/0.3793, allocations: 8 kB / 0.5642 GB, free: 1.398 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.826e-05/0.3793, allocations: 11.98 kB / 0.5642 GB, free: 1.379 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.372e-06/0.3793, allocations: 0 / 0.5642 GB, free: 1.379 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.537e-06/0.3793, allocations: 4 kB / 0.5642 GB, free: 1.375 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.831e-06/0.3793, allocations: 3.938 kB / 0.5642 GB, free: 1.371 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003048/0.3796, allocations: 261.7 kB / 0.5645 GB, free: 1.066 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.322e-06/0.3796, allocations: 0 / 0.5645 GB, free: 1.066 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.239e-05/0.3796, allocations: 7.938 kB / 0.5645 GB, free: 1.059 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.779e-06/0.3796, allocations: 3.984 kB / 0.5645 GB, free: 1.055 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.155e-05/0.3797, allocations: 7.938 kB / 0.5645 GB, free: 1.047 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/0.3797, allocations: 0 / 0.5645 GB, free: 1.047 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.936e-06/0.3797, allocations: 3.984 kB / 0.5645 GB, free: 1.043 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001806/0.3798, allocations: 152 kB / 0.5647 GB, free: 0.8789 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.399e-05/0.3799, allocations: 7.953 kB / 0.5647 GB, free: 0.8711 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.577e-05/0.3799, allocations: 3.938 kB / 0.5647 GB, free: 0.8672 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.256e-05/0.3799, allocations: 4.031 kB / 0.5647 GB, free: 0.8633 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.415e-05/0.38, allocations: 4.422 kB / 0.5647 GB, free: 0.8594 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.779e-06/0.38, allocations: 4 kB / 0.5647 GB, free: 0.8555 MB / 398.1 MB Notification: Performance of sorting global known variables: time 6.024e-05/0.38, allocations: 95.2 kB / 0.5648 GB, free: 0.7617 MB / 398.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.38, allocations: 7.875 kB / 0.5648 GB, free: 0.7539 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002263/0.3803, allocations: 11.94 kB / 0.5648 GB, free: 0.7422 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: 2 (greaterEqualThreshold.y,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * 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 Backend phase and start with SimCode phase: time 0.0004582/0.3807, allocations: 0.6812 MB / 0.5655 GB, free: 36 kB / 398.1 MB Notification: Performance of simCode: created initialization part: time 9.537e-05/0.3808, allocations: 27.98 kB / 0.5655 GB, free: 8 kB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.3808, allocations: 0 / 0.5655 GB, free: 8 kB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 2.052e-05/0.3808, allocations: 4 kB / 0.5655 GB, free: 4 kB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000295/0.3811, allocations: 14.94 kB / 0.5655 GB, free: 15.99 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001309/0.3824, allocations: 1.278 MB / 0.5668 GB, free: 14.63 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003285/0.3828, allocations: 0.6846 MB / 0.5674 GB, free: 13.92 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 2.286e-05/0.3828, allocations: 8 kB / 0.5674 GB, free: 13.91 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.242e-05/0.3828, allocations: 15.44 kB / 0.5674 GB, free: 13.89 MB / 414.1 MB Notification: Performance of SimCode: time 3.11e-07/0.3828, allocations: 0 / 0.5674 GB, free: 13.89 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02367/0.4065, allocations: 1.7 MB / 0.5691 GB, free: 12.34 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.38/11.79, allocations: 9.672 kB / 0.5691 GB, free: 12.33 MB / 414.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_4.1.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Blocks.SelfResettingIntegrator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Blocks.SelfResettingIntegrator_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Blocks_SelfResettingIntegrator_fmu --startTime=0 --stopTime=5 --stepSize=0.000998004 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_Blocks_SelfResettingIntegrator.fmu > ModelicaTest_4.1.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Blocks.SelfResettingIntegrator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/SelfResettingIntegrator/SelfResettingIntegrator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Blocks.SelfResettingIntegrator.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.845772697008215]