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.001735/0.001735, allocations: 121 kB / 18.5 MB, free: 4.562 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.002052/0.002052, allocations: 213.5 kB / 21.45 MB, free: 1.617 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.521/1.521, allocations: 230.6 MB / 254.8 MB, free: 15.08 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.2343/0.2343, allocations: 46.92 MB / 357.8 MB, free: 10.29 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.001912/0.001912, allocations: 59.91 kB / 0.4916 GB, free: 7.949 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1364/0.1383, allocations: 65.99 MB / 0.556 GB, free: 5.836 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.002434/0.1408, allocations: 0.8236 MB / 0.5568 GB, free: 5.012 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.000258/0.141, allocations: 47.83 kB / 0.5569 GB, free: 4.965 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.775e-05/0.1411, allocations: 0 / 0.5569 GB, free: 4.965 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001232/0.1412, allocations: 7.938 kB / 0.5569 GB, free: 4.957 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 1.992e-05/0.1413, allocations: 11.94 kB / 0.5569 GB, free: 4.945 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001163/0.1414, allocations: 15.97 kB / 0.5569 GB, free: 4.93 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001181/0.1415, allocations: 35.86 kB / 0.557 GB, free: 4.895 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001072/0.1416, allocations: 19.97 kB / 0.557 GB, free: 4.875 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.764e-05/0.1416, allocations: 15.94 kB / 0.557 GB, free: 4.859 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.09e-05/0.1417, allocations: 7.922 kB / 0.557 GB, free: 4.852 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 1.97e-05/0.1417, allocations: 4 kB / 0.557 GB, free: 4.848 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.052e-05/0.1417, allocations: 4 kB / 0.557 GB, free: 4.844 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 1.911e-05/0.1417, allocations: 4 kB / 0.557 GB, free: 4.84 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 4.51e-05/0.1418, allocations: 19.88 kB / 0.557 GB, free: 4.82 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001224/0.1419, allocations: 43.75 kB / 0.5571 GB, free: 4.777 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.187e-06/0.1419, allocations: 4 kB / 0.5571 GB, free: 4.773 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.1419, allocations: 0 / 0.5571 GB, free: 4.773 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.037e-05/0.1419, allocations: 0 / 0.5571 GB, free: 4.773 MB / 414.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.0004786/0.1424, allocations: 351.3 kB / 0.5574 GB, free: 4.379 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.991e-05/0.1424, allocations: 8.031 kB / 0.5574 GB, free: 4.371 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.606e-05/0.1424, allocations: 8.188 kB / 0.5574 GB, free: 4.363 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.511e-05/0.1425, allocations: 34.75 kB / 0.5575 GB, free: 4.32 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.877e-05/0.1425, allocations: 4.938 kB / 0.5575 GB, free: 4.316 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000269/0.1428, allocations: 184.3 kB / 0.5576 GB, free: 4.098 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.133e-05/0.1428, allocations: 4.375 kB / 0.5576 GB, free: 4.094 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.501e-05/0.1428, allocations: 4.375 kB / 0.5577 GB, free: 4.09 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001301/0.1429, allocations: 53.98 kB / 0.5577 GB, free: 4.031 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.265e-06/0.143, allocations: 0 / 0.5577 GB, free: 4.031 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.258e-06/0.143, allocations: 4 kB / 0.5577 GB, free: 4.027 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.509e-06/0.143, allocations: 0 / 0.5577 GB, free: 4.027 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.06e-05/0.143, allocations: 19.92 kB / 0.5577 GB, free: 4.008 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005606/0.1436, allocations: 292.7 kB / 0.558 GB, free: 3.672 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.672e-05/0.1436, allocations: 26.52 kB / 0.558 GB, free: 3.637 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.976e-05/0.1437, allocations: 8.922 kB / 0.558 GB, free: 3.625 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.514e-06/0.1437, allocations: 0 / 0.558 GB, free: 3.625 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001049/0.1438, allocations: 51.41 kB / 0.5581 GB, free: 3.562 MB / 414.1 MB Notification: Performance of pre-optimization done (n=3): time 2.865e-06/0.1438, allocations: 7.984 kB / 0.5581 GB, free: 3.555 MB / 414.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001632/0.1439, allocations: 53.64 kB / 0.5581 GB, free: 3.496 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.561e-05/0.144, allocations: 55.34 kB / 0.5582 GB, free: 3.43 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001794/0.1442, allocations: 125.7 kB / 0.5583 GB, free: 3.297 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.202e-05/0.1442, allocations: 33.64 kB / 0.5584 GB, free: 3.258 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.188e-05/0.1442, allocations: 92.09 kB / 0.5584 GB, free: 3.164 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.186e-05/0.1443, allocations: 3.953 kB / 0.5584 GB, free: 3.16 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.732e-05/0.1443, allocations: 21.7 kB / 0.5585 GB, free: 3.133 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001582/0.1445, allocations: 314.8 kB / 0.5588 GB, free: 2.816 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.074e-05/0.1445, allocations: 8 kB / 0.5588 GB, free: 2.809 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.809e-05/0.1445, allocations: 17.7 kB / 0.5588 GB, free: 2.785 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.359e-05/0.1445, allocations: 25.72 kB / 0.5588 GB, free: 2.754 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.1446, allocations: 3.938 kB / 0.5588 GB, free: 2.75 MB / 414.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 8.159e-05/0.1446, allocations: 49.69 kB / 0.5589 GB, free: 2.695 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.669e-05/0.1446, allocations: 9.719 kB / 0.5589 GB, free: 2.688 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.668e-06/0.1447, allocations: 4.031 kB / 0.5589 GB, free: 2.684 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.339e-05/0.1447, allocations: 0 / 0.5589 GB, free: 2.684 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.266e-05/0.1447, allocations: 4 kB / 0.5589 GB, free: 2.68 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.925e-06/0.1447, allocations: 3.938 kB / 0.5589 GB, free: 2.676 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.294e-05/0.1447, allocations: 11.89 kB / 0.5589 GB, free: 2.664 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.807e-06/0.1447, allocations: 0 / 0.5589 GB, free: 2.664 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: 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 0.0001012/0.1448, allocations: 113.8 kB / 0.559 GB, free: 2.543 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.297e-06/0.1449, allocations: 0 / 0.559 GB, free: 2.543 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.747e-05/0.1449, allocations: 15.89 kB / 0.559 GB, free: 2.523 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.643e-06/0.1449, allocations: 4 kB / 0.559 GB, free: 2.52 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.647e-06/0.1449, allocations: 0 / 0.559 GB, free: 2.52 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.509e-06/0.1449, allocations: 3.938 kB / 0.559 GB, free: 2.516 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003058/0.1452, allocations: 294.6 kB / 0.5593 GB, free: 2.172 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.1452, allocations: 7.938 kB / 0.5593 GB, free: 2.164 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.091e-05/0.1452, allocations: 4 kB / 0.5593 GB, free: 2.16 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.673e-06/0.1452, allocations: 0 / 0.5593 GB, free: 2.16 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.03e-05/0.1453, allocations: 3.938 kB / 0.5593 GB, free: 2.156 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.192e-06/0.1453, allocations: 0 / 0.5593 GB, free: 2.156 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.1453, allocations: 4 kB / 0.5593 GB, free: 2.152 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001425/0.1454, allocations: 147.5 kB / 0.5595 GB, free: 1.992 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.199e-05/0.1454, allocations: 81.48 kB / 0.5595 GB, free: 1.895 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.476e-05/0.1455, allocations: 7.922 kB / 0.5596 GB, free: 1.887 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.526e-05/0.1455, allocations: 4.031 kB / 0.5596 GB, free: 1.883 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.928e-05/0.1455, allocations: 4.375 kB / 0.5596 GB, free: 1.879 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.978e-06/0.1456, allocations: 0 / 0.5596 GB, free: 1.879 MB / 414.1 MB Notification: Performance of sorting global known variables: time 5.954e-05/0.1456, allocations: 103.1 kB / 0.5597 GB, free: 1.777 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1456, allocations: 8.062 kB / 0.5597 GB, free: 1.77 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002106/0.1458, allocations: 4 kB / 0.5597 GB, free: 1.766 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: 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.0004553/0.1463, allocations: 0.6812 MB / 0.5603 GB, free: 1.059 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 9.348e-05/0.1464, allocations: 19.94 kB / 0.5604 GB, free: 1.039 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.1464, allocations: 0 / 0.5604 GB, free: 1.039 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 2.054e-05/0.1464, allocations: 12.12 kB / 0.5604 GB, free: 1.027 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002589/0.1467, allocations: 11.92 kB / 0.5604 GB, free: 1.016 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00126/0.1479, allocations: 1.287 MB / 0.5616 GB, free: 15.64 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003324/0.1482, allocations: 0.6885 MB / 0.5623 GB, free: 14.93 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 1.773e-05/0.1483, allocations: 0 / 0.5623 GB, free: 14.93 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.711e-05/0.1483, allocations: 19.42 kB / 0.5623 GB, free: 14.91 MB / 430.1 MB Notification: Performance of SimCode: time 5.21e-07/0.1483, allocations: 0 / 0.5623 GB, free: 14.91 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01894/0.1672, allocations: 1.589 MB / 0.5639 GB, free: 13.43 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.202/8.37, allocations: 21.03 kB / 0.5639 GB, free: 13.41 MB / 430.1 MB " [Timeout remaining time 652] (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: 11.479622631974053]