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.001574/0.001574, allocations: 113.1 kB / 20.43 MB, free: 1.457 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.001865/0.001865, allocations: 214.4 kB / 23.75 MB, free: 4.668 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.431/1.431, 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.2491/0.2491, allocations: 46.93 MB / 360.9 MB, free: 4.355 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.SelfResettingIntegrator,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Blocks_SelfResettingIntegrator",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001916/0.001916, allocations: 71.89 kB / 0.4962 GB, free: 7.926 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3224/0.3243, allocations: 66.04 MB / 0.5606 GB, free: 4.48 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.00235/0.3267, allocations: 0.823 MB / 0.5614 GB, free: 3.66 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002288/0.3269, allocations: 55.8 kB / 0.5615 GB, free: 3.605 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.232e-05/0.327, allocations: 0 / 0.5615 GB, free: 3.605 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001281/0.3271, allocations: 7.875 kB / 0.5615 GB, free: 3.598 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 1.642e-05/0.3271, allocations: 0 / 0.5615 GB, free: 3.598 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00016/0.3273, allocations: 23.92 kB / 0.5615 GB, free: 3.574 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001129/0.3274, allocations: 35.92 kB / 0.5616 GB, free: 3.539 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001095/0.3275, allocations: 17.8 kB / 0.5616 GB, free: 3.523 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.14e-05/0.3276, allocations: 11.94 kB / 0.5616 GB, free: 3.512 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.899e-05/0.3276, allocations: 15.92 kB / 0.5616 GB, free: 3.496 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.592e-05/0.3276, allocations: 4 kB / 0.5616 GB, free: 3.492 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.185e-05/0.3276, allocations: 8 kB / 0.5616 GB, free: 3.484 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.843e-05/0.3276, allocations: 7.938 kB / 0.5616 GB, free: 3.477 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 3.549e-05/0.3277, allocations: 19.86 kB / 0.5616 GB, free: 3.457 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001145/0.3278, allocations: 43.7 kB / 0.5617 GB, free: 3.414 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.461e-06/0.3278, allocations: 0 / 0.5617 GB, free: 3.414 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.3278, allocations: 0 / 0.5617 GB, free: 3.414 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.981e-06/0.3278, allocations: 0 / 0.5617 GB, free: 3.414 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.0004668/0.3283, allocations: 279.1 kB / 0.562 GB, free: 3.105 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.496e-05/0.3283, allocations: 12.03 kB / 0.562 GB, free: 3.094 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.83e-05/0.3284, allocations: 38.73 kB / 0.562 GB, free: 3.047 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.127e-05/0.3284, allocations: 12.89 kB / 0.562 GB, free: 3.035 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002239/0.3286, allocations: 118.5 kB / 0.5621 GB, free: 2.895 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.067e-06/0.3286, allocations: 384 / 0.5621 GB, free: 2.895 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.908e-05/0.3287, allocations: 8.312 kB / 0.5621 GB, free: 2.887 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001244/0.3288, allocations: 50.25 kB / 0.5622 GB, free: 2.832 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.031e-05/0.3288, allocations: 3.938 kB / 0.5622 GB, free: 2.828 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.995e-06/0.3288, allocations: 0 / 0.5622 GB, free: 2.828 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.619e-06/0.3288, allocations: 0 / 0.5622 GB, free: 2.828 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.661e-05/0.3288, allocations: 15.98 kB / 0.5622 GB, free: 2.812 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005108/0.3294, allocations: 267.7 kB / 0.5625 GB, free: 2.508 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.239e-05/0.3294, allocations: 30.62 kB / 0.5625 GB, free: 2.469 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.842e-05/0.3294, allocations: 4.859 kB / 0.5625 GB, free: 2.461 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.314e-06/0.3294, allocations: 0 / 0.5625 GB, free: 2.461 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001062/0.3296, allocations: 59.36 kB / 0.5625 GB, free: 2.391 MB / 398.1 MB Notification: Performance of pre-optimization done (n=3): time 9.41e-07/0.3296, allocations: 0 / 0.5625 GB, free: 2.391 MB / 398.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001518/0.3297, allocations: 53.62 kB / 0.5626 GB, free: 2.332 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.941e-05/0.3297, allocations: 51.41 kB / 0.5626 GB, free: 2.27 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001152/0.3299, allocations: 117.8 kB / 0.5628 GB, free: 2.145 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.929e-05/0.3299, allocations: 29.7 kB / 0.5628 GB, free: 2.109 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.185e-05/0.3299, allocations: 92.09 kB / 0.5629 GB, free: 2.016 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.314e-05/0.33, allocations: 3.953 kB / 0.5629 GB, free: 2.012 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.542e-05/0.33, allocations: 25.7 kB / 0.5629 GB, free: 1.98 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001514/0.3301, allocations: 318.7 kB / 0.5632 GB, free: 1.66 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.039e-05/0.3302, allocations: 8 kB / 0.5632 GB, free: 1.652 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.558e-05/0.3302, allocations: 17.7 kB / 0.5632 GB, free: 1.629 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.547e-05/0.3302, allocations: 30.03 kB / 0.5633 GB, free: 1.594 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.3302, allocations: 4 kB / 0.5633 GB, free: 1.59 MB / 398.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 7.975e-05/0.3303, allocations: 49.62 kB / 0.5633 GB, free: 1.535 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.528e-05/0.3303, allocations: 12.03 kB / 0.5633 GB, free: 1.523 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.318e-06/0.3303, allocations: 3.938 kB / 0.5633 GB, free: 1.52 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.408e-05/0.3304, allocations: 0 / 0.5633 GB, free: 1.52 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.02e-05/0.3304, allocations: 4 kB / 0.5633 GB, free: 1.516 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.919e-06/0.3304, allocations: 0 / 0.5633 GB, free: 1.516 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.468e-05/0.3304, allocations: 11.89 kB / 0.5633 GB, free: 1.504 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.707e-06/0.3304, allocations: 0 / 0.5633 GB, free: 1.504 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.906e-05/0.3305, allocations: 117.8 kB / 0.5635 GB, free: 1.379 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.455e-06/0.3305, allocations: 0 / 0.5635 GB, free: 1.379 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.288e-05/0.3306, allocations: 19.98 kB / 0.5635 GB, free: 1.352 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.433e-06/0.3306, allocations: 0 / 0.5635 GB, free: 1.352 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.507e-06/0.3306, allocations: 0 / 0.5635 GB, free: 1.352 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.889e-06/0.3306, allocations: 3.938 kB / 0.5635 GB, free: 1.348 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002969/0.3309, allocations: 269.6 kB / 0.5637 GB, free: 1.035 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.3309, allocations: 0 / 0.5637 GB, free: 1.035 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.249e-05/0.3309, allocations: 7.984 kB / 0.5637 GB, free: 1.027 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.713e-06/0.3309, allocations: 0 / 0.5637 GB, free: 1.027 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.15e-05/0.3309, allocations: 7.938 kB / 0.5638 GB, free: 1.02 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.202e-06/0.3309, allocations: 4 kB / 0.5638 GB, free: 1.016 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.91e-07/0.3309, allocations: 0 / 0.5638 GB, free: 1.016 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001546/0.3311, allocations: 151.8 kB / 0.5639 GB, free: 0.8516 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.117e-05/0.3311, allocations: 3.953 kB / 0.5639 GB, free: 0.8477 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.706e-05/0.3311, allocations: 7.969 kB / 0.5639 GB, free: 0.8398 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.951e-05/0.3312, allocations: 3.984 kB / 0.5639 GB, free: 0.8359 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.989e-05/0.3312, allocations: 4 kB / 0.5639 GB, free: 0.832 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.037e-06/0.3312, allocations: 0 / 0.5639 GB, free: 0.832 MB / 398.1 MB Notification: Performance of sorting global known variables: time 6.7e-05/0.3313, allocations: 99.33 kB / 0.564 GB, free: 0.7344 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3313, allocations: 0 / 0.564 GB, free: 0.7344 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000208/0.3315, allocations: 7.938 kB / 0.564 GB, free: 0.7266 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.0004468/0.3319, allocations: 0.6773 MB / 0.5647 GB, free: 24 kB / 398.1 MB Notification: Performance of simCode: created initialization part: time 9.096e-05/0.332, allocations: 23.86 kB / 0.5647 GB, free: 0 / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.158e-06/0.332, allocations: 4.359 kB / 0.5647 GB, free: 15.99 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 1.95e-05/0.332, allocations: 8.281 kB / 0.5647 GB, free: 15.98 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002649/0.3323, allocations: 15.92 kB / 0.5647 GB, free: 15.97 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001255/0.3336, allocations: 1.286 MB / 0.566 GB, free: 14.6 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003356/0.3339, allocations: 0.6846 MB / 0.5667 GB, free: 13.89 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 1.796e-05/0.3339, allocations: 0 / 0.5667 GB, free: 13.89 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.795e-05/0.334, allocations: 15.44 kB / 0.5667 GB, free: 13.87 MB / 414.1 MB Notification: Performance of SimCode: time 3.11e-07/0.334, allocations: 4 kB / 0.5667 GB, free: 13.87 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02779/0.3617, allocations: 1.679 MB / 0.5683 GB, free: 12.32 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.92/11.28, allocations: 3.938 kB / 0.5683 GB, free: 12.32 MB / 414.1 MB " [Timeout remaining time 649] (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.244862819090486]