Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001713/0.001713, allocations: 118.6 kB / 18.5 MB, free: 4.434 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002054/0.002054, allocations: 218.6 kB / 21.47 MB, free: 1.473 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.525/1.525, allocations: 230.2 MB / 254.5 MB, free: 15.23 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2357/0.2357, allocations: 46.9 MB / 357.4 MB, free: 10.46 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.SelfResettingIntegrator,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_SelfResettingIntegrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.SelfResettingIntegrator,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_SelfResettingIntegrator",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002243/0.002243, allocations: 75.88 kB / 0.4912 GB, free: 8.32 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1231/0.1254, allocations: 65.99 MB / 0.5557 GB, free: 6.199 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.002213/0.1276, allocations: 0.8238 MB / 0.5565 GB, free: 5.371 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002322/0.1278, allocations: 47.88 kB / 0.5565 GB, free: 5.324 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.146e-05/0.1279, allocations: 7.938 kB / 0.5565 GB, free: 5.316 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001155/0.128, allocations: 3.938 kB / 0.5565 GB, free: 5.312 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 1.839e-05/0.128, allocations: 3.938 kB / 0.5565 GB, free: 5.309 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001269/0.1282, allocations: 23.97 kB / 0.5566 GB, free: 5.285 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001248/0.1283, allocations: 35.86 kB / 0.5566 GB, free: 5.25 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00012/0.1284, allocations: 15.98 kB / 0.5566 GB, free: 5.234 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.605e-05/0.1284, allocations: 11.94 kB / 0.5566 GB, free: 5.223 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.176e-05/0.1285, allocations: 11.92 kB / 0.5566 GB, free: 5.211 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 1.727e-05/0.1285, allocations: 4 kB / 0.5566 GB, free: 5.207 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.164e-05/0.1285, allocations: 4 kB / 0.5566 GB, free: 5.203 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 2.546e-05/0.1286, allocations: 11.92 kB / 0.5567 GB, free: 5.191 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 3.435e-05/0.1286, allocations: 11.94 kB / 0.5567 GB, free: 5.18 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001217/0.1287, allocations: 39.77 kB / 0.5567 GB, free: 5.141 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.1287, allocations: 0 / 0.5567 GB, free: 5.141 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.1287, allocations: 4 kB / 0.5567 GB, free: 5.137 MB / 414.1 MB Notification: Performance of Transformations before backend: time 5.471e-06/0.1287, allocations: 4 kB / 0.5567 GB, free: 5.133 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.0005077/0.1292, allocations: 351.3 kB / 0.557 GB, free: 4.738 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.215e-05/0.1293, allocations: 12.03 kB / 0.5571 GB, free: 4.727 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.807e-05/0.1293, allocations: 34.75 kB / 0.5571 GB, free: 4.684 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.87e-05/0.1294, allocations: 4.938 kB / 0.5571 GB, free: 4.68 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003724/0.1297, allocations: 180.2 kB / 0.5573 GB, free: 4.465 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.058e-05/0.1297, allocations: 8.375 kB / 0.5573 GB, free: 4.457 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.343e-05/0.1298, allocations: 4.375 kB / 0.5573 GB, free: 4.453 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001271/0.1299, allocations: 50.25 kB / 0.5573 GB, free: 4.398 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.134e-05/0.1299, allocations: 3.938 kB / 0.5573 GB, free: 4.395 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.949e-06/0.1299, allocations: 0 / 0.5573 GB, free: 4.395 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.809e-06/0.1299, allocations: 4 kB / 0.5573 GB, free: 4.391 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.22e-05/0.13, allocations: 12 kB / 0.5573 GB, free: 4.379 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006061/0.1306, allocations: 296.6 kB / 0.5576 GB, free: 4.039 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.205e-05/0.1306, allocations: 22.58 kB / 0.5577 GB, free: 4.008 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.767e-05/0.1307, allocations: 12.92 kB / 0.5577 GB, free: 3.992 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.143e-06/0.1307, allocations: 0 / 0.5577 GB, free: 3.992 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.812e-05/0.1308, allocations: 55.34 kB / 0.5577 GB, free: 3.926 MB / 414.1 MB Notification: Performance of pre-optimization done (n=3): time 1.422e-06/0.1308, allocations: 0 / 0.5577 GB, free: 3.926 MB / 414.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001679/0.1309, allocations: 49.64 kB / 0.5578 GB, free: 3.871 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.751e-05/0.131, allocations: 55.41 kB / 0.5578 GB, free: 3.805 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002468/0.1312, allocations: 129.7 kB / 0.5579 GB, free: 3.668 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.209e-05/0.1313, allocations: 25.7 kB / 0.558 GB, free: 3.637 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000192/0.1315, allocations: 92.16 kB / 0.5581 GB, free: 3.543 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.32e-05/0.1315, allocations: 11.95 kB / 0.5581 GB, free: 3.531 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.174e-05/0.1315, allocations: 17.7 kB / 0.5581 GB, free: 3.508 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002597/0.1318, allocations: 322.7 kB / 0.5584 GB, free: 3.184 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.076e-05/0.1318, allocations: 4 kB / 0.5584 GB, free: 3.18 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.834e-05/0.1319, allocations: 25.7 kB / 0.5584 GB, free: 3.148 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.925e-05/0.1319, allocations: 21.72 kB / 0.5584 GB, free: 3.121 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.1319, allocations: 0 / 0.5584 GB, free: 3.121 MB / 414.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001398/0.132, allocations: 61.62 kB / 0.5585 GB, free: 3.055 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.376e-05/0.1321, allocations: 6.5 kB / 0.5585 GB, free: 3.051 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.877e-06/0.1321, allocations: 4 kB / 0.5585 GB, free: 3.047 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.256e-05/0.1321, allocations: 0 / 0.5585 GB, free: 3.047 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.165e-05/0.1321, allocations: 4 kB / 0.5585 GB, free: 3.043 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.208e-06/0.1321, allocations: 4.031 kB / 0.5585 GB, free: 3.039 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.343e-05/0.1321, allocations: 7.891 kB / 0.5585 GB, free: 3.031 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.464e-06/0.1321, allocations: 4 kB / 0.5585 GB, free: 3.027 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.264e-05/0.1322, allocations: 109.8 kB / 0.5586 GB, free: 2.91 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.147e-05/0.1322, allocations: 4 kB / 0.5586 GB, free: 2.906 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.423e-05/0.1323, allocations: 7.891 kB / 0.5586 GB, free: 2.895 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.209e-06/0.1323, allocations: 4 kB / 0.5586 GB, free: 2.891 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.689e-06/0.1323, allocations: 3.938 kB / 0.5587 GB, free: 2.887 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.238e-06/0.1323, allocations: 3.938 kB / 0.5587 GB, free: 2.883 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003266/0.1326, allocations: 298.6 kB / 0.5589 GB, free: 2.535 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.213e-06/0.1326, allocations: 0 / 0.5589 GB, free: 2.535 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.349e-05/0.1326, allocations: 4 kB / 0.5589 GB, free: 2.531 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.513e-06/0.1326, allocations: 0 / 0.5589 GB, free: 2.531 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.251e-05/0.1327, allocations: 8.312 kB / 0.559 GB, free: 2.523 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.182e-06/0.1327, allocations: 0 / 0.559 GB, free: 2.523 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.1327, allocations: 0 / 0.559 GB, free: 2.523 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001675/0.1328, allocations: 159.5 kB / 0.5591 GB, free: 2.352 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.96e-05/0.1329, allocations: 81.06 kB / 0.5592 GB, free: 2.254 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.749e-05/0.1329, allocations: 7.922 kB / 0.5592 GB, free: 2.246 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.771e-05/0.133, allocations: 0 / 0.5592 GB, free: 2.246 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.54e-05/0.133, allocations: 4.406 kB / 0.5592 GB, free: 2.242 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.278e-06/0.133, allocations: 3.938 kB / 0.5592 GB, free: 2.238 MB / 414.1 MB Notification: Performance of sorting global known variables: time 7.454e-05/0.1331, allocations: 95.2 kB / 0.5593 GB, free: 2.145 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.1331, allocations: 0 / 0.5593 GB, free: 2.145 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002375/0.1333, allocations: 12 kB / 0.5593 GB, free: 2.133 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.0004584/0.1338, allocations: 0.6812 MB / 0.56 GB, free: 1.426 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 9.959e-05/0.1339, allocations: 19.94 kB / 0.56 GB, free: 1.406 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.1339, allocations: 0 / 0.56 GB, free: 1.406 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 2.004e-05/0.1339, allocations: 7.938 kB / 0.56 GB, free: 1.398 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002668/0.1341, allocations: 15.92 kB / 0.56 GB, free: 1.383 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001277/0.1354, allocations: 1.284 MB / 0.5613 GB, free: 16 kB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004536/0.1359, allocations: 0.6885 MB / 0.5619 GB, free: 15.3 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 1.989e-05/0.1359, allocations: 0 / 0.5619 GB, free: 15.3 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.218e-05/0.1359, allocations: 23.42 kB / 0.562 GB, free: 15.28 MB / 430.1 MB Notification: Performance of SimCode: time 3.11e-07/0.1359, allocations: 0 / 0.562 GB, free: 15.28 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02452/0.1605, allocations: 1.554 MB / 0.5635 GB, free: 13.8 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.224/8.384, allocations: 3.984 kB / 0.5635 GB, free: 13.8 MB / 430.1 MB " [Timeout remaining time 652] (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Blocks_SelfResettingIntegrator_fmu --startTime=0 --stopTime=5 --stepSize=0.000998004 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Blocks_SelfResettingIntegrator.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/SelfResettingIntegrator/SelfResettingIntegrator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_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.397918291855603]