Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.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.001353/0.001353, 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.001539/0.001539, 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.547/1.547, allocations: 230.6 MB / 258.3 MB, free: 8.023 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2507/0.2507, allocations: 44.9 MB / 359.6 MB, free: 6.297 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.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_0_0_ModelicaTest_Blocks_SelfResettingIntegrator",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.SelfResettingIntegrator,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_SelfResettingIntegrator",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002031/0.002031, allocations: 67.89 kB / 0.4938 GB, free: 10.73 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3092/0.3113, allocations: 65.47 MB / 0.5578 GB, free: 7.531 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.002125/0.3134, allocations: 0.8196 MB / 0.5586 GB, free: 6.922 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002086/0.3136, allocations: 44.33 kB / 0.5586 GB, free: 6.887 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.344e-05/0.3137, allocations: 1.844 kB / 0.5586 GB, free: 6.887 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001326/0.3138, allocations: 11.86 kB / 0.5586 GB, free: 6.875 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 1.673e-05/0.3138, allocations: 0.9688 kB / 0.5586 GB, free: 6.875 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001437/0.3139, allocations: 19.52 kB / 0.5587 GB, free: 6.859 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001214/0.3141, allocations: 38.92 kB / 0.5587 GB, free: 6.836 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001144/0.3142, allocations: 18.45 kB / 0.5587 GB, free: 6.824 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.089e-05/0.3142, allocations: 16.34 kB / 0.5587 GB, free: 6.812 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.525e-05/0.3143, allocations: 14.23 kB / 0.5587 GB, free: 6.801 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.383e-05/0.3143, allocations: 4.094 kB / 0.5587 GB, free: 6.801 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.044e-05/0.3143, allocations: 2.75 kB / 0.5587 GB, free: 6.801 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.458e-05/0.3143, allocations: 8.969 kB / 0.5588 GB, free: 6.793 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 3.964e-05/0.3143, allocations: 19.27 kB / 0.5588 GB, free: 6.777 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001141/0.3145, allocations: 40.77 kB / 0.5588 GB, free: 6.738 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.017e-06/0.3145, allocations: 0 / 0.5588 GB, free: 6.738 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.516e-06/0.3145, allocations: 4 kB / 0.5588 GB, free: 6.734 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.172e-06/0.3145, allocations: 0 / 0.5588 GB, free: 6.734 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.0004633/0.3149, allocations: 287.1 kB / 0.5591 GB, free: 6.418 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.844e-05/0.315, allocations: 8.031 kB / 0.5591 GB, free: 6.41 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.115e-05/0.315, allocations: 192 / 0.5591 GB, free: 6.41 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.327e-05/0.315, allocations: 38.73 kB / 0.5591 GB, free: 6.363 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.87e-05/0.3151, allocations: 4.891 kB / 0.5591 GB, free: 6.359 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001989/0.3153, allocations: 118.5 kB / 0.5593 GB, free: 6.219 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.073e-05/0.3153, allocations: 4.375 kB / 0.5593 GB, free: 6.215 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.84e-05/0.3153, allocations: 4.375 kB / 0.5593 GB, free: 6.211 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001289/0.3154, allocations: 61.92 kB / 0.5593 GB, free: 6.145 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.073e-06/0.3154, allocations: 0 / 0.5593 GB, free: 6.145 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.052e-05/0.3154, allocations: 7.938 kB / 0.5593 GB, free: 6.137 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.692e-06/0.3154, allocations: 4 kB / 0.5593 GB, free: 6.133 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.371e-05/0.3155, allocations: 12 kB / 0.5593 GB, free: 6.121 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004867/0.316, allocations: 263.7 kB / 0.5596 GB, free: 5.82 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.07e-05/0.316, allocations: 22.58 kB / 0.5596 GB, free: 5.789 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.091e-05/0.316, allocations: 12.92 kB / 0.5596 GB, free: 5.773 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.48e-06/0.3161, allocations: 0 / 0.5596 GB, free: 5.773 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.127e-05/0.3161, allocations: 59.3 kB / 0.5597 GB, free: 5.703 MB / 398.1 MB Notification: Performance of pre-optimization done (n=3): time 9.82e-07/0.3161, allocations: 0 / 0.5597 GB, free: 5.703 MB / 398.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001445/0.3163, allocations: 49.62 kB / 0.5597 GB, free: 5.648 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.777e-05/0.3163, allocations: 51.41 kB / 0.5598 GB, free: 5.586 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001176/0.3164, allocations: 129.8 kB / 0.5599 GB, free: 5.449 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.712e-05/0.3165, allocations: 25.7 kB / 0.5599 GB, free: 5.418 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.242e-05/0.3165, allocations: 88.09 kB / 0.56 GB, free: 5.328 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.622e-05/0.3165, allocations: 7.953 kB / 0.56 GB, free: 5.32 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.406e-05/0.3166, allocations: 17.72 kB / 0.56 GB, free: 5.297 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001483/0.3167, allocations: 318.8 kB / 0.5603 GB, free: 4.977 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.709e-05/0.3167, allocations: 4 kB / 0.5603 GB, free: 4.973 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.683e-05/0.3168, allocations: 17.91 kB / 0.5604 GB, free: 4.949 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.681e-05/0.3168, allocations: 37.72 kB / 0.5604 GB, free: 4.906 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.383e-06/0.3168, allocations: 0 / 0.5604 GB, free: 4.906 MB / 398.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 8.313e-05/0.3169, allocations: 53.62 kB / 0.5605 GB, free: 4.848 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.146e-05/0.3169, allocations: 4 kB / 0.5605 GB, free: 4.844 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.198e-06/0.3169, allocations: 0 / 0.5605 GB, free: 4.844 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.179e-05/0.3169, allocations: 4 kB / 0.5605 GB, free: 4.84 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.279e-05/0.317, allocations: 8 kB / 0.5605 GB, free: 4.832 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.031e-06/0.317, allocations: 3.984 kB / 0.5605 GB, free: 4.828 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.084e-05/0.317, allocations: 11.92 kB / 0.5605 GB, free: 4.816 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.42e-06/0.317, allocations: 4 kB / 0.5605 GB, free: 4.812 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.844e-05/0.3171, allocations: 113.8 kB / 0.5606 GB, free: 4.691 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.128e-05/0.3171, allocations: 4 kB / 0.5606 GB, free: 4.688 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.58e-05/0.3171, allocations: 11.98 kB / 0.5606 GB, free: 4.668 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.533e-06/0.3171, allocations: 384 / 0.5606 GB, free: 4.668 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.911e-06/0.3171, allocations: 4 kB / 0.5606 GB, free: 4.664 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.278e-06/0.3171, allocations: 3.938 kB / 0.5606 GB, free: 4.66 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002942/0.3174, allocations: 269.6 kB / 0.5609 GB, free: 4.348 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/0.3174, allocations: 3.938 kB / 0.5609 GB, free: 4.344 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.274e-05/0.3175, allocations: 7.984 kB / 0.5609 GB, free: 4.336 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.763e-06/0.3175, allocations: 0 / 0.5609 GB, free: 4.336 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.937e-06/0.3175, allocations: 3.938 kB / 0.5609 GB, free: 4.332 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.192e-06/0.3175, allocations: 0 / 0.5609 GB, free: 4.332 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.61e-07/0.3175, allocations: 0 / 0.5609 GB, free: 4.332 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001549/0.3176, allocations: 155.5 kB / 0.561 GB, free: 4.164 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.158e-05/0.3176, allocations: 12.02 kB / 0.561 GB, free: 4.152 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.383e-05/0.3177, allocations: 3.938 kB / 0.5611 GB, free: 4.148 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.619e-05/0.3177, allocations: 4 kB / 0.5611 GB, free: 4.145 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.808e-05/0.3177, allocations: 3.984 kB / 0.5611 GB, free: 4.141 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.837e-06/0.3177, allocations: 0 / 0.5611 GB, free: 4.141 MB / 398.1 MB Notification: Performance of sorting global known variables: time 6.353e-05/0.3178, allocations: 91.27 kB / 0.5611 GB, free: 4.051 MB / 398.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3178, allocations: 0 / 0.5611 GB, free: 4.051 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002155/0.318, allocations: 11.94 kB / 0.5612 GB, free: 4.039 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.0004364/0.3185, allocations: 0.6812 MB / 0.5618 GB, free: 3.332 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 9.777e-05/0.3186, allocations: 24.09 kB / 0.5618 GB, free: 3.309 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.118e-06/0.3186, allocations: 4 kB / 0.5618 GB, free: 3.305 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 1.821e-05/0.3186, allocations: 4 kB / 0.5619 GB, free: 3.301 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002662/0.3188, allocations: 12.06 kB / 0.5619 GB, free: 3.289 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001261/0.3201, allocations: 1.292 MB / 0.5631 GB, free: 1.914 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003205/0.3204, allocations: 0.6846 MB / 0.5638 GB, free: 1.203 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 1.878e-05/0.3204, allocations: 256 / 0.5638 GB, free: 1.203 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.69e-05/0.3205, allocations: 19.44 kB / 0.5638 GB, free: 1.184 MB / 398.1 MB Notification: Performance of SimCode: time 3.31e-07/0.3205, allocations: 0 / 0.5638 GB, free: 1.184 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02215/0.3426, allocations: 1.701 MB / 0.5655 GB, free: 15.62 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.31/11.65, allocations: 17.47 kB / 0.5655 GB, free: 15.62 MB / 414.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Blocks_SelfResettingIntegrator_fmu --startTime=0 --stopTime=5 --stepSize=0.000998004 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Blocks_SelfResettingIntegrator.fmu > ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/SelfResettingIntegrator/SelfResettingIntegrator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.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.747699791041669]