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.000898/0.000898, allocations: 79.7 kB / 20.67 MB, free: 3.891 MB / 18.57 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.001/0.001, allocations: 174.3 kB / 23.95 MB, free: 0.6133 MB / 18.57 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 0.886/0.886, allocations: 177.1 MB / 204.3 MB, free: 5.738 MB / 186.7 MB " [Timeout remaining time 179] 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.2355/0.2355, allocations: 34.25 MB / 294.9 MB, free: 0.7109 MB / 266.7 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 2.855e-06/2.855e-06, allocations: 3.984 kB / 442.2 MB, free: 1.676 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.335e-05/1.62e-05, allocations: 2.281 kB / 442.2 MB, free: 1.672 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.001321/0.001337, allocations: 0.8016 MB / 443 MB, free: 0.8711 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.0001758/0.001513, allocations: 51.8 kB / 443 MB, free: 0.8203 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.894e-05/0.001572, allocations: 8 kB / 443 MB, free: 0.8125 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001001/0.001672, allocations: 3.938 kB / 443 MB, free: 0.8086 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 1.569e-05/0.001687, allocations: 7.875 kB / 443 MB, free: 0.8008 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001032/0.001791, allocations: 19.92 kB / 443.1 MB, free: 0.7812 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001001/0.001891, allocations: 35.91 kB / 443.1 MB, free: 0.7461 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.552e-05/0.001986, allocations: 12 kB / 443.1 MB, free: 0.7344 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.98e-05/0.002026, allocations: 19.91 kB / 443.1 MB, free: 0.7148 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.699e-05/0.002063, allocations: 11.98 kB / 443.1 MB, free: 0.7031 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 1.832e-05/0.002081, allocations: 4 kB / 443.1 MB, free: 0.6992 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.346e-06/0.00209, allocations: 0 / 443.1 MB, free: 0.6992 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 1.888e-05/0.002108, allocations: 15.94 kB / 443.2 MB, free: 0.6836 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 1.904e-05/0.002127, allocations: 4 kB / 443.2 MB, free: 0.6797 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 9.238e-05/0.00222, allocations: 39.88 kB / 443.2 MB, free: 0.6406 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.804e-06/0.002222, allocations: 0 / 443.2 MB, free: 0.6406 MB / 410.7 MB Notification: Performance of FrontEnd: time 5.11e-07/0.002222, allocations: 0 / 443.2 MB, free: 0.6406 MB / 410.7 MB Notification: Performance of Transformations before backend: time 3.988e-06/0.002226, allocations: 3.938 kB / 443.2 MB, free: 0.6367 MB / 410.7 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.0003332/0.002559, allocations: 285.4 kB / 443.5 MB, free: 332 kB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.505e-05/0.002594, allocations: 12.03 kB / 443.5 MB, free: 320 kB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.645e-05/0.002621, allocations: 34.73 kB / 443.5 MB, free: 276 kB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.146e-05/0.002642, allocations: 8.891 kB / 443.5 MB, free: 268 kB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001474/0.00279, allocations: 129.7 kB / 443.7 MB, free: 112 kB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.067e-06/0.002799, allocations: 384 / 443.7 MB, free: 112 kB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.13e-05/0.00282, allocations: 8.375 kB / 443.7 MB, free: 104 kB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.736e-05/0.002907, allocations: 46.25 kB / 443.7 MB, free: 52 kB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.412e-06/0.002914, allocations: 192 / 443.7 MB, free: 52 kB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.407e-06/0.002923, allocations: 4.375 kB / 443.7 MB, free: 48 kB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.739e-06/0.002928, allocations: 4.125 kB / 443.7 MB, free: 44 kB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.624e-05/0.002964, allocations: 15.94 kB / 443.7 MB, free: 28 kB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.147/0.15, allocations: 245.1 kB / 444 MB, free: 44.12 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.386e-05/0.15, allocations: 27.38 kB / 444 MB, free: 44.1 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.41e-05/0.15, allocations: 10.45 kB / 444 MB, free: 44.09 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.014e-05/0.15, allocations: 0 / 444 MB, free: 44.09 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.973e-05/0.1501, allocations: 53.88 kB / 444.1 MB, free: 44.05 MB / 410.7 MB Notification: Performance of pre-optimization done (n=3): time 1.423e-06/0.1501, allocations: 3 kB / 444.1 MB, free: 44.05 MB / 410.7 MB Notification: Performance of matching and sorting (n=3): time 0.0001223/0.1502, allocations: 51.41 kB / 444.1 MB, free: 44.02 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.9e-05/0.1503, allocations: 51.41 kB / 444.2 MB, free: 43.95 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.083e-05/0.1503, allocations: 118.2 kB / 444.3 MB, free: 43.86 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 6.152e-06/0.1503, allocations: 27.92 kB / 444.3 MB, free: 43.82 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.514e-05/0.1503, allocations: 88.84 kB / 444.4 MB, free: 43.74 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.283e-05/0.1503, allocations: 13.23 kB / 444.4 MB, free: 43.74 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.405e-05/0.1504, allocations: 18.14 kB / 444.4 MB, free: 43.72 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 2.641e-05/0.1504, allocations: 321 kB / 444.7 MB, free: 43.41 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.254e-05/0.1504, allocations: 12.25 kB / 444.8 MB, free: 43.41 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.737e-05/0.1504, allocations: 19.06 kB / 444.8 MB, free: 43.39 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.895e-05/0.1505, allocations: 26.66 kB / 444.8 MB, free: 43.38 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-06/0.1505, allocations: 0 / 444.8 MB, free: 43.38 MB / 410.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 4.866e-05/0.1505, allocations: 57.38 kB / 444.9 MB, free: 43.34 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.402e-05/0.1505, allocations: 8.562 kB / 444.9 MB, free: 43.34 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.21e-06/0.1505, allocations: 7.078 kB / 444.9 MB, free: 43.34 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.287e-05/0.1505, allocations: 4.5 kB / 444.9 MB, free: 43.34 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.124e-05/0.1506, allocations: 6.094 kB / 444.9 MB, free: 43.34 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.568e-06/0.1506, allocations: 2.625 kB / 444.9 MB, free: 43.34 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.072e-05/0.1506, allocations: 3.438 kB / 444.9 MB, free: 43.34 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.289e-06/0.1506, allocations: 0 / 444.9 MB, free: 43.34 MB / 410.7 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 3.916e-05/0.1506, allocations: 116.1 kB / 445 MB, free: 43.22 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.982e-06/0.1506, allocations: 6.828 kB / 445 MB, free: 43.22 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.863e-05/0.1507, allocations: 12.19 kB / 445 MB, free: 43.21 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.392e-06/0.1507, allocations: 1.812 kB / 445 MB, free: 43.21 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.847e-06/0.1507, allocations: 0 / 445 MB, free: 43.21 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.325e-06/0.1507, allocations: 0 / 445 MB, free: 43.21 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001592/0.1508, allocations: 266.8 kB / 445.3 MB, free: 42.95 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.1508, allocations: 3.281 kB / 445.3 MB, free: 42.95 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.48e-05/0.1509, allocations: 6.625 kB / 445.3 MB, free: 42.95 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.593e-06/0.1509, allocations: 0 / 445.3 MB, free: 42.95 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.471e-06/0.1509, allocations: 0.5625 kB / 445.3 MB, free: 42.95 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.1509, allocations: 2.75 kB / 445.3 MB, free: 42.95 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.1509, allocations: 3.938 kB / 445.3 MB, free: 42.95 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.82e-05/0.1509, allocations: 156.5 kB / 445.5 MB, free: 42.82 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.165e-06/0.1509, allocations: 6.547 kB / 445.5 MB, free: 42.82 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.089e-05/0.151, allocations: 2.125 kB / 445.5 MB, free: 42.82 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.01e-05/0.151, allocations: 2.594 kB / 445.5 MB, free: 42.82 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.448e-05/0.151, allocations: 5.25 kB / 445.5 MB, free: 42.81 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.769e-06/0.151, allocations: 5.953 kB / 445.5 MB, free: 42.81 MB / 410.7 MB Notification: Performance of sorting global known variables: time 2.073e-05/0.151, allocations: 95.03 kB / 445.6 MB, free: 42.74 MB / 410.7 MB Notification: Performance of sort global known variables: time 6.1e-08/0.151, allocations: 0 / 445.6 MB, free: 42.74 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0001428/0.1512, allocations: 12.53 kB / 445.6 MB, free: 42.74 MB / 410.7 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.0001418/0.1513, allocations: 0.6747 MB / 446.3 MB, free: 42.08 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 6.235e-05/0.1514, allocations: 17.53 kB / 446.3 MB, free: 42.08 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.363e-06/0.1514, allocations: 0 / 446.3 MB, free: 42.08 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 1.328e-05/0.1514, allocations: 12.64 kB / 446.3 MB, free: 42.08 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001945/0.1516, allocations: 16.47 kB / 446.3 MB, free: 42.07 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005595/0.1522, allocations: 1.284 MB / 447.6 MB, free: 40.91 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.124e-05/0.1522, allocations: 69.14 kB / 447.7 MB, free: 40.84 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 1.689e-05/0.1522, allocations: 6.328 kB / 447.7 MB, free: 40.84 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.111e-05/0.1522, allocations: 14.34 kB / 447.7 MB, free: 40.84 MB / 410.7 MB Notification: Performance of SimCode: time 5.71e-07/0.1522, allocations: 1.031 kB / 447.7 MB, free: 40.84 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01534/0.1676, allocations: 2.233 MB / 449.9 MB, free: 39.98 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.705/6.873, allocations: 14.11 kB / 449.9 MB, free: 39.97 MB / 410.7 MB " [Timeout remaining time 653] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/SelfResettingIntegrator/SelfResettingIntegrator.csv","/var/lib/jenkins/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: 8.740027315914631]