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.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_ModelicaTest_Blocks_SelfResettingIntegrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.SelfResettingIntegrator,fileNamePrefix="ModelicaTest_4_0_0_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.0007168/0.0007169, allocations: 91.06 kB / 17.35 MB, free: 6 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.0008289/0.0008289, allocations: 177.9 kB / 18.26 MB, free: 5.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.192/1.192, allocations: 223.3 MB / 242.3 MB, free: 196 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1667/0.1667, allocations: 44.25 MB / 337.7 MB, free: 2.664 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002787/0.0002787, allocations: 8 kB / 410.4 MB, free: 27.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08929/0.08959, allocations: 61.93 MB / 472.4 MB, free: 13.26 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.0009741/0.09059, allocations: 0.5338 MB / 472.9 MB, free: 12.73 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001675/0.09077, allocations: 47.89 kB / 472.9 MB, free: 12.68 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.6e-05/0.09084, allocations: 7.875 kB / 472.9 MB, free: 12.67 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 9.08e-05/0.09094, allocations: 8 kB / 473 MB, free: 12.66 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 1.758e-05/0.09097, allocations: 3.938 kB / 473 MB, free: 12.66 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 9.122e-05/0.09106, allocations: 11.98 kB / 473 MB, free: 12.65 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 8.067e-05/0.09115, allocations: 35.92 kB / 473 MB, free: 12.61 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.612e-05/0.09125, allocations: 15.97 kB / 473 MB, free: 12.6 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.794e-05/0.09127, allocations: 7.938 kB / 473 MB, free: 12.59 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.093e-05/0.09132, allocations: 19.92 kB / 473 MB, free: 12.57 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.07e-05/0.09134, allocations: 3.938 kB / 473 MB, free: 12.57 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.126e-06/0.09135, allocations: 0 / 473 MB, free: 12.57 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.558e-05/0.09137, allocations: 4 kB / 473.1 MB, free: 12.56 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.584e-05/0.09141, allocations: 41.58 kB / 473.1 MB, free: 12.52 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 6.574e-05/0.09148, allocations: 28.16 kB / 473.1 MB, free: 12.49 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.925e-06/0.09149, allocations: 0 / 473.1 MB, free: 12.49 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.0915, allocations: 0 / 473.1 MB, free: 12.49 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.256e-06/0.09151, allocations: 4 kB / 473.1 MB, free: 12.48 MB / 350.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.0003439/0.09186, allocations: 349.7 kB / 473.5 MB, free: 12.09 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.406e-05/0.0919, allocations: 8.031 kB / 473.5 MB, free: 12.09 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.141e-05/0.09193, allocations: 34.69 kB / 473.5 MB, free: 12.04 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.232e-05/0.09196, allocations: 8.844 kB / 473.5 MB, free: 12.04 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001358/0.0921, allocations: 176.3 kB / 473.7 MB, free: 11.82 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.987e-06/0.09212, allocations: 4.375 kB / 473.7 MB, free: 11.82 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.751e-05/0.09214, allocations: 4.375 kB / 473.7 MB, free: 11.82 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.986e-05/0.09224, allocations: 50.25 kB / 473.7 MB, free: 11.76 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.574e-06/0.09225, allocations: 3.938 kB / 473.8 MB, free: 11.76 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.404e-06/0.09226, allocations: 0 / 473.8 MB, free: 11.76 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.607e-06/0.09228, allocations: 8 kB / 473.8 MB, free: 11.75 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.828e-05/0.09232, allocations: 19.92 kB / 473.8 MB, free: 11.73 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004206/0.09274, allocations: 296.7 kB / 474.1 MB, free: 11.39 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.905e-05/0.09281, allocations: 22.58 kB / 474.1 MB, free: 11.36 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.815e-05/0.09283, allocations: 12.8 kB / 474.1 MB, free: 11.34 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.558e-06/0.09285, allocations: 8.062 kB / 474.1 MB, free: 11.34 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.24e-05/0.09294, allocations: 51.34 kB / 474.2 MB, free: 11.27 MB / 350.1 MB Notification: Performance of pre-optimization done (n=3): time 1.032e-06/0.09295, allocations: 0 / 474.2 MB, free: 11.27 MB / 350.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001231/0.09308, allocations: 53.59 kB / 474.2 MB, free: 11.21 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.972e-05/0.09312, allocations: 51.41 kB / 474.3 MB, free: 11.15 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.951e-05/0.0932, allocations: 121.7 kB / 474.4 MB, free: 11.02 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.113e-05/0.09322, allocations: 25.7 kB / 474.4 MB, free: 10.99 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.326e-05/0.09327, allocations: 96.12 kB / 474.5 MB, free: 10.89 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.286e-05/0.09328, allocations: 7.812 kB / 474.5 MB, free: 10.89 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.206e-05/0.09331, allocations: 17.72 kB / 474.5 MB, free: 10.86 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.137e-05/0.09341, allocations: 318.8 kB / 474.8 MB, free: 10.54 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.604e-05/0.09343, allocations: 8 kB / 474.8 MB, free: 10.54 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.473e-05/0.09346, allocations: 17.72 kB / 474.9 MB, free: 10.51 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.336e-05/0.0935, allocations: 21.72 kB / 474.9 MB, free: 10.48 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.805e-06/0.09351, allocations: 7.984 kB / 474.9 MB, free: 10.48 MB / 350.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 7.138e-05/0.09358, allocations: 49.64 kB / 474.9 MB, free: 10.42 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.244e-05/0.0936, allocations: 8 kB / 474.9 MB, free: 10.41 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.128e-06/0.09361, allocations: 0 / 474.9 MB, free: 10.41 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.238e-06/0.09362, allocations: 0 / 474.9 MB, free: 10.41 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.997e-05/0.09366, allocations: 7.984 kB / 475 MB, free: 10.41 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.579e-06/0.09367, allocations: 0 / 475 MB, free: 10.41 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.883e-05/0.0937, allocations: 7.938 kB / 475 MB, free: 10.4 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.01e-06/0.09371, allocations: 4 kB / 475 MB, free: 10.39 MB / 350.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.727e-05/0.09378, allocations: 121.8 kB / 475.1 MB, free: 10.27 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.014e-05/0.0938, allocations: 3.906 kB / 475.1 MB, free: 10.26 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.019e-05/0.09382, allocations: 11.91 kB / 475.1 MB, free: 10.25 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.352e-06/0.09383, allocations: 0 / 475.1 MB, free: 10.25 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.43e-06/0.09384, allocations: 3.984 kB / 475.1 MB, free: 10.24 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.146e-06/0.09385, allocations: 3.938 kB / 475.1 MB, free: 10.24 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002322/0.09408, allocations: 290.6 kB / 475.4 MB, free: 9.898 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.91e-07/0.0941, allocations: 0 / 475.4 MB, free: 9.898 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.794e-05/0.09413, allocations: 7.938 kB / 475.4 MB, free: 9.891 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.707e-06/0.09414, allocations: 7.984 kB / 475.4 MB, free: 9.883 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.404e-06/0.09415, allocations: 4.312 kB / 475.4 MB, free: 9.879 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.072e-06/0.09416, allocations: 0 / 475.4 MB, free: 9.879 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.853e-06/0.09416, allocations: 0 / 475.4 MB, free: 9.879 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001127/0.09428, allocations: 155.4 kB / 475.6 MB, free: 9.711 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.861e-05/0.09432, allocations: 77.11 kB / 475.6 MB, free: 9.617 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.23e-05/0.09434, allocations: 7.969 kB / 475.6 MB, free: 9.609 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.483e-05/0.09439, allocations: 8.062 kB / 475.7 MB, free: 9.602 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.352e-05/0.09442, allocations: 3.984 kB / 475.7 MB, free: 9.598 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.879e-06/0.09443, allocations: 4 kB / 475.7 MB, free: 9.594 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.131e-05/0.09448, allocations: 95.58 kB / 475.8 MB, free: 9.5 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.09448, allocations: 0 / 475.8 MB, free: 9.5 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002001/0.09469, allocations: 4 kB / 475.8 MB, free: 9.496 MB / 350.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.0003076/0.095, allocations: 0.6895 MB / 476.4 MB, free: 8.777 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 6.564e-05/0.09507, allocations: 19.92 kB / 476.5 MB, free: 8.758 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.786e-06/0.09508, allocations: 7.938 kB / 476.5 MB, free: 8.75 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 1.461e-05/0.0951, allocations: 4 kB / 476.5 MB, free: 8.746 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002375/0.09534, allocations: 11.98 kB / 476.5 MB, free: 8.734 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009062/0.09626, allocations: 1.291 MB / 477.8 MB, free: 7.359 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001886/0.09646, allocations: 0.6848 MB / 478.5 MB, free: 6.648 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.819e-05/0.09648, allocations: 4 kB / 478.5 MB, free: 6.645 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.087e-05/0.09652, allocations: 15.44 kB / 478.5 MB, free: 6.629 MB / 350.1 MB Notification: Performance of SimCode: time 2.9e-07/0.09652, allocations: 0 / 478.5 MB, free: 6.629 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01186/0.1084, allocations: 1.34 MB / 479.8 MB, free: 5.41 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002945/0.1087, allocations: 198.6 kB / 480 MB, free: 5.152 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.625/1.733, allocations: 3.938 kB / 480 MB, free: 5.148 MB / 350.1 MB (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 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Blocks_SelfResettingIntegrator.fmu > ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe 2>&1) 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) Reference file matches