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.001808/0.001808, allocations: 117.2 kB / 18.49 MB, free: 4.66 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.002159/0.002159, allocations: 205.5 kB / 21.45 MB, free: 1.715 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.518/1.518, allocations: 230.6 MB / 254.8 MB, free: 15.09 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.2258/0.2258, allocations: 44.91 MB / 355.8 MB, free: 12.31 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.002341/0.002341, allocations: 67.91 kB / 0.4885 GB, free: 11.69 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1199/0.1223, allocations: 65.42 MB / 0.5524 GB, free: 10.14 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.002172/0.1244, allocations: 0.801 MB / 0.5532 GB, free: 9.344 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002213/0.1247, allocations: 59.81 kB / 0.5533 GB, free: 9.285 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.02e-05/0.1247, allocations: 4 kB / 0.5533 GB, free: 9.281 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001062/0.1248, allocations: 7.875 kB / 0.5533 GB, free: 9.273 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 1.461e-05/0.1248, allocations: 0 / 0.5533 GB, free: 9.273 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001199/0.125, allocations: 19.92 kB / 0.5533 GB, free: 9.254 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001158/0.1251, allocations: 39.91 kB / 0.5533 GB, free: 9.215 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.64e-05/0.1252, allocations: 16.2 kB / 0.5534 GB, free: 9.199 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.722e-05/0.1252, allocations: 11.94 kB / 0.5534 GB, free: 9.188 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.88e-05/0.1253, allocations: 23.84 kB / 0.5534 GB, free: 9.164 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 1.552e-05/0.1253, allocations: 4 kB / 0.5534 GB, free: 9.16 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.617e-06/0.1253, allocations: 0 / 0.5534 GB, free: 9.16 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 2.049e-05/0.1253, allocations: 8 kB / 0.5534 GB, free: 9.152 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 3.285e-05/0.1253, allocations: 23.81 kB / 0.5534 GB, free: 9.129 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001175/0.1254, allocations: 39.81 kB / 0.5535 GB, free: 9.09 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.1254, allocations: 0 / 0.5535 GB, free: 9.09 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.1255, allocations: 0 / 0.5535 GB, free: 9.09 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.042e-05/0.1255, allocations: 0 / 0.5535 GB, free: 9.09 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.0004697/0.1259, allocations: 351.3 kB / 0.5538 GB, free: 8.695 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.807e-05/0.126, allocations: 8.031 kB / 0.5538 GB, free: 8.688 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.3e-05/0.126, allocations: 192 / 0.5538 GB, free: 8.688 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.076e-05/0.126, allocations: 34.75 kB / 0.5538 GB, free: 8.645 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.555e-05/0.126, allocations: 4.938 kB / 0.5538 GB, free: 8.641 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002338/0.1263, allocations: 192.2 kB / 0.554 GB, free: 8.414 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.557e-05/0.1263, allocations: 4.375 kB / 0.554 GB, free: 8.41 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.447e-05/0.1263, allocations: 8.359 kB / 0.554 GB, free: 8.402 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001234/0.1264, allocations: 53.98 kB / 0.5541 GB, free: 8.344 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.085e-06/0.1264, allocations: 0 / 0.5541 GB, free: 8.344 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.267e-05/0.1265, allocations: 4 kB / 0.5541 GB, free: 8.34 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.576e-06/0.1265, allocations: 0 / 0.5541 GB, free: 8.34 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.872e-05/0.1265, allocations: 12 kB / 0.5541 GB, free: 8.328 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005208/0.127, allocations: 300.7 kB / 0.5544 GB, free: 7.984 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.312e-05/0.1271, allocations: 18.58 kB / 0.5544 GB, free: 7.957 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.236e-05/0.1271, allocations: 12.92 kB / 0.5544 GB, free: 7.941 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.362e-06/0.1271, allocations: 0 / 0.5544 GB, free: 7.941 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.691e-05/0.1272, allocations: 51.34 kB / 0.5545 GB, free: 7.879 MB / 414.1 MB Notification: Performance of pre-optimization done (n=3): time 1.032e-06/0.1272, allocations: 0 / 0.5545 GB, free: 7.879 MB / 414.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001492/0.1274, allocations: 57.64 kB / 0.5545 GB, free: 7.816 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.726e-05/0.1274, allocations: 51.41 kB / 0.5546 GB, free: 7.754 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001177/0.1275, allocations: 121.8 kB / 0.5547 GB, free: 7.625 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.826e-05/0.1275, allocations: 29.7 kB / 0.5547 GB, free: 7.59 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.705e-05/0.1276, allocations: 88.09 kB / 0.5548 GB, free: 7.5 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.248e-05/0.1276, allocations: 3.953 kB / 0.5548 GB, free: 7.496 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.549e-05/0.1277, allocations: 21.72 kB / 0.5548 GB, free: 7.469 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001503/0.1278, allocations: 322.8 kB / 0.5551 GB, free: 7.145 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.826e-05/0.1278, allocations: 8.312 kB / 0.5551 GB, free: 7.137 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.022e-05/0.1279, allocations: 21.66 kB / 0.5552 GB, free: 7.109 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.063e-05/0.1279, allocations: 25.7 kB / 0.5552 GB, free: 7.078 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.1279, allocations: 0 / 0.5552 GB, free: 7.078 MB / 414.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 9.629e-05/0.128, allocations: 57.56 kB / 0.5552 GB, free: 7.016 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.303e-05/0.128, allocations: 8.031 kB / 0.5552 GB, free: 7.008 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.438e-06/0.128, allocations: 0 / 0.5552 GB, free: 7.008 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.45e-05/0.128, allocations: 4 kB / 0.5553 GB, free: 7.004 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.966e-05/0.1281, allocations: 0 / 0.5553 GB, free: 7.004 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.156e-05/0.1281, allocations: 8 kB / 0.5553 GB, free: 6.996 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.49e-05/0.1281, allocations: 15.83 kB / 0.5553 GB, free: 6.98 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.498e-06/0.1281, allocations: 336 / 0.5553 GB, free: 6.98 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 8.16e-05/0.1282, allocations: 109.8 kB / 0.5554 GB, free: 6.863 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.264e-05/0.1282, allocations: 4 kB / 0.5554 GB, free: 6.859 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.846e-05/0.1282, allocations: 19.88 kB / 0.5554 GB, free: 6.836 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.433e-06/0.1282, allocations: 0 / 0.5554 GB, free: 6.836 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.997e-06/0.1283, allocations: 0 / 0.5554 GB, free: 6.836 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.362e-06/0.1283, allocations: 3.938 kB / 0.5554 GB, free: 6.832 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000331/0.1286, allocations: 298.5 kB / 0.5557 GB, free: 6.484 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.173e-06/0.1286, allocations: 0 / 0.5557 GB, free: 6.484 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.548e-05/0.1286, allocations: 7.984 kB / 0.5557 GB, free: 6.477 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.425e-06/0.1286, allocations: 0 / 0.5557 GB, free: 6.477 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.866e-06/0.1286, allocations: 3.938 kB / 0.5557 GB, free: 6.473 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.383e-06/0.1286, allocations: 4 kB / 0.5557 GB, free: 6.469 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.1286, allocations: 0 / 0.5557 GB, free: 6.469 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001576/0.1288, allocations: 147.5 kB / 0.5558 GB, free: 6.309 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.244e-05/0.1288, allocations: 85.09 kB / 0.5559 GB, free: 6.207 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.562e-05/0.1289, allocations: 7.938 kB / 0.5559 GB, free: 6.199 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.728e-05/0.1289, allocations: 3.984 kB / 0.5559 GB, free: 6.195 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.731e-05/0.1289, allocations: 4 kB / 0.5559 GB, free: 6.191 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.007e-06/0.129, allocations: 0 / 0.5559 GB, free: 6.191 MB / 414.1 MB Notification: Performance of sorting global known variables: time 5.746e-05/0.129, allocations: 95.33 kB / 0.556 GB, free: 6.098 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.129, allocations: 0 / 0.556 GB, free: 6.098 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002567/0.1293, allocations: 4 kB / 0.556 GB, free: 6.094 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.0004652/0.1297, allocations: 0.6889 MB / 0.5567 GB, free: 5.379 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 8.366e-05/0.1298, allocations: 16.27 kB / 0.5567 GB, free: 5.363 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.1298, allocations: 12.06 kB / 0.5567 GB, free: 5.352 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 2.075e-05/0.1298, allocations: 7.938 kB / 0.5567 GB, free: 5.344 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002589/0.1301, allocations: 17.8 kB / 0.5568 GB, free: 5.328 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001254/0.1314, allocations: 1.289 MB / 0.558 GB, free: 3.961 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003516/0.1317, allocations: 0.6846 MB / 0.5587 GB, free: 3.25 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 2.267e-05/0.1317, allocations: 4.188 kB / 0.5587 GB, free: 3.246 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.637e-05/0.1318, allocations: 11.44 kB / 0.5587 GB, free: 3.234 MB / 414.1 MB Notification: Performance of SimCode: time 3.81e-07/0.1318, allocations: 4 kB / 0.5587 GB, free: 3.23 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01865/0.1504, allocations: 1.591 MB / 0.5603 GB, free: 1.742 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.289/8.439, allocations: 10.34 kB / 0.5603 GB, free: 1.734 MB / 414.1 MB " [Timeout remaining time 651] (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: 11.50395024602767]