Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.SelfResettingIntegrator,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_SelfResettingIntegrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.SelfResettingIntegrator,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_SelfResettingIntegrator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001422/0.001422, allocations: 103.5 kB / 16.27 MB, free: 5.977 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001376/0.001376, allocations: 192.1 kB / 17.2 MB, free: 5.609 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.832/1.832, allocations: 205.1 MB / 223.1 MB, free: 12.3 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2668/0.2668, allocations: 43.52 MB / 313.9 MB, free: 0.5273 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001987/0.001987, allocations: 68.84 kB / 382.8 MB, free: 56.68 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1459/0.1479, allocations: 57.79 MB / 440.6 MB, free: 6.816 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.002948/0.1509, allocations: 0.8077 MB / 441.4 MB, free: 6 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002974/0.1512, allocations: 47.83 kB / 441.5 MB, free: 5.953 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001078/0.1514, allocations: 0 / 441.5 MB, free: 5.953 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001403/0.1516, allocations: 7.938 kB / 441.5 MB, free: 5.945 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 2.571e-05/0.1516, allocations: 3.938 kB / 441.5 MB, free: 5.941 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001437/0.1517, allocations: 15.97 kB / 441.5 MB, free: 5.926 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000125/0.1519, allocations: 47.84 kB / 441.5 MB, free: 5.879 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001485/0.152, allocations: 19.92 kB / 441.6 MB, free: 5.859 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.395e-05/0.1521, allocations: 19.92 kB / 441.6 MB, free: 5.84 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.036e-05/0.1521, allocations: 11.94 kB / 441.6 MB, free: 5.828 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.274e-05/0.1522, allocations: 4 kB / 441.6 MB, free: 5.824 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.447e-05/0.1522, allocations: 0 / 441.6 MB, free: 5.824 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.313e-05/0.1522, allocations: 15.92 kB / 441.6 MB, free: 5.809 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 3.767e-05/0.1523, allocations: 11.94 kB / 441.6 MB, free: 5.797 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001182/0.1524, allocations: 47.75 kB / 441.7 MB, free: 5.75 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.649e-06/0.1524, allocations: 3.938 kB / 441.7 MB, free: 5.746 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.204e-06/0.1524, allocations: 0 / 441.7 MB, free: 5.746 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.181e-06/0.1524, allocations: 0 / 441.7 MB, free: 5.746 MB / 318.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.0004529/0.1529, allocations: 351.4 kB / 442 MB, free: 5.352 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.455e-05/0.1529, allocations: 11.89 kB / 442 MB, free: 5.34 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.766e-05/0.153, allocations: 38.73 kB / 442.1 MB, free: 5.293 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.597e-05/0.153, allocations: 4.844 kB / 442.1 MB, free: 5.289 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001676/0.1532, allocations: 180.3 kB / 442.2 MB, free: 5.074 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.447e-05/0.1532, allocations: 384 / 442.2 MB, free: 5.074 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.758e-05/0.1533, allocations: 8.375 kB / 442.3 MB, free: 5.066 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001288/0.1534, allocations: 58.17 kB / 442.3 MB, free: 5.004 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.089e-05/0.1534, allocations: 3.938 kB / 442.3 MB, free: 5 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.118e-05/0.1534, allocations: 4 kB / 442.3 MB, free: 4.996 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.011e-06/0.1534, allocations: 0 / 442.3 MB, free: 4.996 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.134e-05/0.1535, allocations: 15.98 kB / 442.3 MB, free: 4.98 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005335/0.154, allocations: 288.7 kB / 442.6 MB, free: 4.648 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.771e-05/0.1541, allocations: 22.52 kB / 442.6 MB, free: 4.617 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.281e-05/0.1541, allocations: 11.16 kB / 442.7 MB, free: 4.605 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.315e-05/0.1542, allocations: 8.062 kB / 442.7 MB, free: 4.598 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001497/0.1543, allocations: 47.41 kB / 442.7 MB, free: 4.539 MB / 318.1 MB Notification: Performance of pre-optimization done (n=3): time 1.022e-06/0.1543, allocations: 0 / 442.7 MB, free: 4.539 MB / 318.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001532/0.1545, allocations: 61.52 kB / 442.8 MB, free: 4.473 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.433e-05/0.1545, allocations: 51.41 kB / 442.8 MB, free: 4.41 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.508e-05/0.1546, allocations: 113.8 kB / 442.9 MB, free: 4.289 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.109e-05/0.1546, allocations: 25.7 kB / 443 MB, free: 4.258 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.481e-05/0.1547, allocations: 96.12 kB / 443 MB, free: 4.16 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.584e-05/0.1547, allocations: 7.844 kB / 443.1 MB, free: 4.152 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.512e-05/0.1547, allocations: 17.72 kB / 443.1 MB, free: 4.129 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.044e-05/0.1548, allocations: 326.8 kB / 443.4 MB, free: 3.801 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.781e-05/0.1548, allocations: 4 kB / 443.4 MB, free: 3.797 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.361e-05/0.1549, allocations: 21.66 kB / 443.4 MB, free: 3.77 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.841e-05/0.1549, allocations: 33.66 kB / 443.4 MB, free: 3.73 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.442e-06/0.1549, allocations: 384 / 443.4 MB, free: 3.73 MB / 318.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 7.427e-05/0.155, allocations: 57.59 kB / 443.5 MB, free: 3.668 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.57e-05/0.155, allocations: 5.25 kB / 443.5 MB, free: 3.664 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.44e-06/0.155, allocations: 0 / 443.5 MB, free: 3.664 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.656e-05/0.155, allocations: 3.938 kB / 443.5 MB, free: 3.66 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.66e-05/0.1551, allocations: 7.938 kB / 443.5 MB, free: 3.652 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.608e-06/0.1551, allocations: 7.984 kB / 443.5 MB, free: 3.645 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.88e-05/0.1551, allocations: 3.938 kB / 443.5 MB, free: 3.641 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.258e-06/0.1552, allocations: 0 / 443.5 MB, free: 3.641 MB / 318.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 6.914e-05/0.1552, allocations: 122.9 kB / 443.7 MB, free: 3.512 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.312e-05/0.1552, allocations: 7.906 kB / 443.7 MB, free: 3.504 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.562e-05/0.1553, allocations: 3.906 kB / 443.7 MB, free: 3.496 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.552e-06/0.1553, allocations: 0 / 443.7 MB, free: 3.496 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.873e-06/0.1553, allocations: 0 / 443.7 MB, free: 3.496 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.062e-06/0.1553, allocations: 3.938 kB / 443.7 MB, free: 3.492 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002443/0.1556, allocations: 298.5 kB / 444 MB, free: 3.145 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.874e-06/0.1556, allocations: 0 / 444 MB, free: 3.145 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.093e-05/0.1556, allocations: 8 kB / 444 MB, free: 3.137 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.134e-06/0.1556, allocations: 0 / 444 MB, free: 3.137 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.586e-06/0.1556, allocations: 3.938 kB / 444 MB, free: 3.133 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.645e-06/0.1556, allocations: 3.984 kB / 444 MB, free: 3.129 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.1556, allocations: 0 / 444 MB, free: 3.129 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001226/0.1558, allocations: 147.5 kB / 444.1 MB, free: 2.969 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.649e-05/0.1558, allocations: 85.14 kB / 444.2 MB, free: 2.867 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.535e-05/0.1558, allocations: 4.359 kB / 444.2 MB, free: 2.863 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.376e-05/0.1559, allocations: 4.062 kB / 444.2 MB, free: 2.859 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.9e-05/0.1559, allocations: 11.92 kB / 444.2 MB, free: 2.848 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.699e-06/0.1559, allocations: 0 / 444.2 MB, free: 2.848 MB / 318.1 MB Notification: Performance of sorting global known variables: time 3.662e-05/0.156, allocations: 87.28 kB / 444.3 MB, free: 2.762 MB / 318.1 MB Notification: Performance of sort global known variables: time 1e-07/0.156, allocations: 0 / 444.3 MB, free: 2.762 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002166/0.1562, allocations: 4 kB / 444.3 MB, free: 2.758 MB / 318.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.0003121/0.1565, allocations: 0.689 MB / 445 MB, free: 2.039 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 9.155e-05/0.1566, allocations: 27.86 kB / 445 MB, free: 2.012 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.288e-06/0.1566, allocations: 0 / 445 MB, free: 2.012 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 1.717e-05/0.1566, allocations: 7.938 kB / 445 MB, free: 2.004 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002923/0.1569, allocations: 12.22 kB / 445 MB, free: 1.992 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009821/0.1579, allocations: 1.3 MB / 446.3 MB, free: 0.6094 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001941/0.1581, allocations: 0.6807 MB / 447 MB, free: 15.9 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 2.448e-05/0.1582, allocations: 4 kB / 447 MB, free: 15.9 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.592e-05/0.1582, allocations: 19.42 kB / 447 MB, free: 15.88 MB / 334.1 MB Notification: Performance of SimCode: time 5.81e-07/0.1582, allocations: 0 / 447 MB, free: 15.88 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04142/0.1997, allocations: 1.537 MB / 448.6 MB, free: 14.35 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.226/8.426, allocations: 4.828 kB / 448.6 MB, free: 14.35 MB / 334.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Blocks_SelfResettingIntegrator_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Blocks_SelfResettingIntegrator.fmu > ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/SelfResettingIntegrator/SelfResettingIntegrator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches