Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.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.001567/0.001567, allocations: 120.4 kB / 18.5 MB, free: 4.578 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.001441/0.001441, allocations: 208.9 kB / 21.46 MB, free: 1.625 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.497/1.497, allocations: 230.2 MB / 254.5 MB, free: 15.25 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.23/0.23, allocations: 46.91 MB / 357.4 MB, free: 10.56 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.LimResetIntegrator,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_LimResetIntegrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.LimResetIntegrator,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_LimResetIntegrator",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002243/0.002243, allocations: 79.86 kB / 0.4912 GB, free: 8.547 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.121/0.1232, allocations: 65.99 MB / 0.5557 GB, free: 6.426 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.002976/0.1262, allocations: 1.647 MB / 0.5573 GB, free: 4.762 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.001112/0.1273, allocations: 0.5822 MB / 0.5579 GB, free: 4.176 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.627e-05/0.1274, allocations: 3.938 kB / 0.5579 GB, free: 4.172 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001242/0.1275, allocations: 19.86 kB / 0.5579 GB, free: 4.152 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 4.864e-05/0.1276, allocations: 11.88 kB / 0.5579 GB, free: 4.141 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003441/0.1279, allocations: 86.69 kB / 0.558 GB, free: 4.059 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001772/0.1281, allocations: 111.7 kB / 0.5581 GB, free: 3.949 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001234/0.1282, allocations: 39.95 kB / 0.5581 GB, free: 3.91 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.781e-05/0.1283, allocations: 47.84 kB / 0.5582 GB, free: 3.863 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.63e-05/0.1284, allocations: 35.83 kB / 0.5582 GB, free: 3.828 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 2.182e-05/0.1284, allocations: 8 kB / 0.5582 GB, free: 3.82 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.56e-05/0.1284, allocations: 11.94 kB / 0.5582 GB, free: 3.809 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 3.478e-05/0.1284, allocations: 27.91 kB / 0.5582 GB, free: 3.781 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 5.444e-05/0.1285, allocations: 43.73 kB / 0.5583 GB, free: 3.738 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001626/0.1286, allocations: 83.64 kB / 0.5584 GB, free: 3.656 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.046e-06/0.1287, allocations: 0 / 0.5584 GB, free: 3.656 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.382e-06/0.1287, allocations: 3.938 kB / 0.5584 GB, free: 3.652 MB / 414.1 MB Notification: Performance of Transformations before backend: time 5.54e-06/0.1287, allocations: 0 / 0.5584 GB, free: 3.652 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0007008/0.1294, allocations: 411 kB / 0.5588 GB, free: 3.203 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.366e-05/0.1294, allocations: 12.03 kB / 0.5588 GB, free: 3.191 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.072e-05/0.1295, allocations: 42.73 kB / 0.5588 GB, free: 3.141 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.825e-05/0.1295, allocations: 12.89 kB / 0.5588 GB, free: 3.129 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002884/0.1298, allocations: 212.1 kB / 0.559 GB, free: 2.883 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.118e-05/0.1298, allocations: 8.375 kB / 0.559 GB, free: 2.875 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.216e-05/0.1298, allocations: 4.375 kB / 0.559 GB, free: 2.871 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002843/0.1301, allocations: 111 kB / 0.5591 GB, free: 2.758 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.668e-06/0.1301, allocations: 0 / 0.5591 GB, free: 2.758 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.394e-05/0.1301, allocations: 4 kB / 0.5591 GB, free: 2.754 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.492e-06/0.1301, allocations: 4 kB / 0.5592 GB, free: 2.75 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001619/0.1303, allocations: 47.91 kB / 0.5592 GB, free: 2.703 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006862/0.131, allocations: 388.5 kB / 0.5596 GB, free: 2.273 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003361/0.1313, allocations: 102.5 kB / 0.5597 GB, free: 2.164 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001124/0.1314, allocations: 32.92 kB / 0.5597 GB, free: 2.129 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.765e-05/0.1315, allocations: 3.984 kB / 0.5597 GB, free: 2.125 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002533/0.1317, allocations: 99.36 kB / 0.5598 GB, free: 2.016 MB / 414.1 MB Notification: Performance of pre-optimization done (n=7): time 3.407e-06/0.1317, allocations: 3.984 kB / 0.5598 GB, free: 2.012 MB / 414.1 MB Notification: Performance of matching and sorting (n=7): time 0.00047/0.1322, allocations: 145.4 kB / 0.5599 GB, free: 1.863 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.042e-05/0.1322, allocations: 59.34 kB / 0.56 GB, free: 1.793 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000145/0.1324, allocations: 149.2 kB / 0.5601 GB, free: 1.641 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.406e-05/0.1324, allocations: 29.7 kB / 0.5602 GB, free: 1.605 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.869e-05/0.1325, allocations: 100.1 kB / 0.5603 GB, free: 1.504 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.538e-05/0.1325, allocations: 19.86 kB / 0.5603 GB, free: 1.484 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.002e-05/0.1325, allocations: 29.7 kB / 0.5603 GB, free: 1.449 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001622/0.1327, allocations: 322.8 kB / 0.5606 GB, free: 1.125 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001234/0.1328, allocations: 35.98 kB / 0.5607 GB, free: 1.09 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001355/0.133, allocations: 53.69 kB / 0.5607 GB, free: 1.031 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002297/0.1332, allocations: 85.73 kB / 0.5608 GB, free: 0.9414 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.245e-06/0.1332, allocations: 0 / 0.5608 GB, free: 0.9414 MB / 414.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.000289/0.1335, allocations: 113.5 kB / 0.5609 GB, free: 0.8242 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.516e-05/0.1335, allocations: 7.938 kB / 0.5609 GB, free: 0.8164 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.448e-06/0.1335, allocations: 0 / 0.5609 GB, free: 0.8164 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.424e-05/0.1335, allocations: 4 kB / 0.5609 GB, free: 0.8125 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001009/0.1336, allocations: 20.02 kB / 0.5609 GB, free: 0.793 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.474e-06/0.1336, allocations: 8.25 kB / 0.5609 GB, free: 0.7852 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.194e-05/0.1337, allocations: 16.06 kB / 0.5609 GB, free: 0.7695 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.085e-06/0.1337, allocations: 4 kB / 0.5609 GB, free: 0.7656 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: 7 ($whenCondition1,change.u,$PRE.change.u,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,integrator.reset,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 10 * 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 0.0001064/0.1338, allocations: 117.8 kB / 0.5611 GB, free: 0.6406 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.09e-05/0.1339, allocations: 15.84 kB / 0.5611 GB, free: 0.625 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.275e-05/0.1339, allocations: 20.72 kB / 0.5611 GB, free: 0.6016 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.843e-06/0.1339, allocations: 0 / 0.5611 GB, free: 0.6016 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.286e-06/0.1339, allocations: 0 / 0.5611 GB, free: 0.6016 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.005e-06/0.1339, allocations: 0 / 0.5611 GB, free: 0.6016 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005841/0.1345, allocations: 398.4 kB / 0.5615 GB, free: 160 kB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.512e-06/0.1345, allocations: 0 / 0.5615 GB, free: 160 kB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.127e-05/0.1346, allocations: 12 kB / 0.5615 GB, free: 148 kB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.784e-06/0.1346, allocations: 4 kB / 0.5615 GB, free: 144 kB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.169e-05/0.1346, allocations: 3.984 kB / 0.5615 GB, free: 140 kB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.242e-06/0.1346, allocations: 0 / 0.5615 GB, free: 140 kB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.1346, allocations: 0 / 0.5615 GB, free: 140 kB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004966/0.1351, allocations: 255.3 kB / 0.5617 GB, free: 15.87 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.872e-05/0.1352, allocations: 85.02 kB / 0.5618 GB, free: 15.77 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.399e-05/0.1352, allocations: 11.97 kB / 0.5618 GB, free: 15.76 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001357/0.1353, allocations: 15.97 kB / 0.5618 GB, free: 15.74 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.826e-05/0.1354, allocations: 15.98 kB / 0.5619 GB, free: 15.73 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.112e-06/0.1354, allocations: 4.062 kB / 0.5619 GB, free: 15.72 MB / 430.1 MB Notification: Performance of sorting global known variables: time 8.621e-05/0.1355, allocations: 111.2 kB / 0.562 GB, free: 15.61 MB / 430.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1355, allocations: 0 / 0.562 GB, free: 15.61 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0002382/0.1357, allocations: 20 kB / 0.562 GB, free: 15.59 MB / 430.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: 5 (integrator.reset,$whenCondition2,$whenCondition1,booleanPulse.pulseStart,change.u) * Number of discrete states: 1 (change.u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0008261/0.1365, allocations: 0.7749 MB / 0.5627 GB, free: 14.79 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0003081/0.1368, allocations: 87.94 kB / 0.5628 GB, free: 14.71 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.1368, allocations: 0 / 0.5628 GB, free: 14.71 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000138/0.137, allocations: 39.92 kB / 0.5629 GB, free: 14.67 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003109/0.1373, allocations: 19.41 kB / 0.5629 GB, free: 14.65 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002742/0.14, allocations: 1.697 MB / 0.5645 GB, free: 12.86 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003961/0.1404, allocations: 0.6962 MB / 0.5652 GB, free: 12.14 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 5.332e-05/0.1405, allocations: 20.55 kB / 0.5652 GB, free: 12.12 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.377e-05/0.1405, allocations: 27.44 kB / 0.5653 GB, free: 12.09 MB / 430.1 MB Notification: Performance of SimCode: time 4.01e-07/0.1405, allocations: 0 / 0.5653 GB, free: 12.09 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02585/0.1664, allocations: 2.617 MB / 0.5678 GB, free: 9.539 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.331/8.498, allocations: 10.66 kB / 0.5678 GB, free: 9.531 MB / 430.1 MB " [Timeout remaining time 651] (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Blocks_LimResetIntegrator_fmu --startTime=0 --stopTime=5 --stepSize=0.000995025 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Blocks_LimResetIntegrator.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/LimResetIntegrator/LimResetIntegrator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.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.420289846137166]