Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Blocks.LimResetIntegrator.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.001316/0.001316, allocations: 112.2 kB / 21.22 MB, free: 0.75 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.001706/0.001706, allocations: 206.1 kB / 24.52 MB, free: 4.156 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.479/1.479, allocations: 230.6 MB / 258.3 MB, free: 8.027 MB / 206.1 MB " [Timeout remaining time 178] 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.2424/0.2424, allocations: 46.94 MB / 361.7 MB, free: 4.301 MB / 286.1 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.LimResetIntegrator,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Blocks_LimResetIntegrator",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.LimResetIntegrator,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Blocks_LimResetIntegrator",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002927/0.002927, allocations: 63.91 kB / 0.4969 GB, free: 7.957 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.334/0.3369, allocations: 66.03 MB / 0.5614 GB, free: 4.531 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.003017/0.3399, allocations: 1.652 MB / 0.563 GB, free: 2.867 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001226/0.3412, allocations: 0.6105 MB / 0.5636 GB, free: 2.254 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001056/0.3413, allocations: 7.938 kB / 0.5636 GB, free: 2.246 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001307/0.3414, allocations: 11.86 kB / 0.5636 GB, free: 2.234 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.915e-05/0.3415, allocations: 11.88 kB / 0.5636 GB, free: 2.223 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003762/0.3418, allocations: 87.81 kB / 0.5637 GB, free: 2.137 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002066/0.3421, allocations: 111.7 kB / 0.5638 GB, free: 2.027 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001264/0.3422, allocations: 23.97 kB / 0.5639 GB, free: 2.004 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.65e-05/0.3423, allocations: 51.84 kB / 0.5639 GB, free: 1.953 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.434e-05/0.3424, allocations: 39.83 kB / 0.5639 GB, free: 1.914 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.697e-05/0.3424, allocations: 12 kB / 0.564 GB, free: 1.902 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.826e-05/0.3424, allocations: 11.94 kB / 0.564 GB, free: 1.891 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.391e-05/0.3424, allocations: 19.92 kB / 0.564 GB, free: 1.871 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 6.007e-05/0.3425, allocations: 43.73 kB / 0.564 GB, free: 1.828 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001848/0.3427, allocations: 87.58 kB / 0.5641 GB, free: 1.742 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.3427, allocations: 0 / 0.5641 GB, free: 1.742 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.863e-06/0.3427, allocations: 0 / 0.5641 GB, free: 1.742 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.04e-06/0.3427, allocations: 0 / 0.5641 GB, free: 1.742 MB / 398.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.0007086/0.3434, allocations: 354.8 kB / 0.5645 GB, free: 1.363 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.452e-05/0.3434, allocations: 12.03 kB / 0.5645 GB, free: 1.352 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.297e-05/0.3435, allocations: 192 / 0.5645 GB, free: 1.352 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.602e-05/0.3435, allocations: 42.73 kB / 0.5645 GB, free: 1.301 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.847e-05/0.3436, allocations: 8.891 kB / 0.5645 GB, free: 1.293 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002798/0.3438, allocations: 142.3 kB / 0.5646 GB, free: 1.129 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.7e-05/0.3439, allocations: 8.375 kB / 0.5647 GB, free: 1.121 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.759e-05/0.3439, allocations: 16.38 kB / 0.5647 GB, free: 1.105 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003058/0.3442, allocations: 100.2 kB / 0.5648 GB, free: 1.004 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.037e-06/0.3442, allocations: 0 / 0.5648 GB, free: 1.004 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.629e-05/0.3442, allocations: 7.984 kB / 0.5648 GB, free: 0.9961 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.489e-06/0.3442, allocations: 0 / 0.5648 GB, free: 0.9961 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001745/0.3444, allocations: 55.91 kB / 0.5648 GB, free: 0.9414 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007431/0.3451, allocations: 355.6 kB / 0.5652 GB, free: 0.5508 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003641/0.3455, allocations: 106.5 kB / 0.5653 GB, free: 448 kB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001275/0.3456, allocations: 32.92 kB / 0.5653 GB, free: 412 kB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.311e-05/0.3456, allocations: 0 / 0.5653 GB, free: 412 kB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002793/0.3459, allocations: 99.34 kB / 0.5654 GB, free: 300 kB / 398.1 MB Notification: Performance of pre-optimization done (n=7): time 1.583e-06/0.3459, allocations: 3.938 kB / 0.5654 GB, free: 296 kB / 398.1 MB Notification: Performance of matching and sorting (n=7): time 0.0005384/0.3465, allocations: 149.5 kB / 0.5655 GB, free: 140 kB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.91e-05/0.3465, allocations: 63.31 kB / 0.5656 GB, free: 64 kB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001828/0.3467, allocations: 143.3 kB / 0.5657 GB, free: 15.91 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.655e-05/0.3467, allocations: 25.7 kB / 0.5658 GB, free: 15.88 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.147e-05/0.3468, allocations: 108.1 kB / 0.5659 GB, free: 15.77 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.193e-05/0.3469, allocations: 19.94 kB / 0.5659 GB, free: 15.75 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.594e-05/0.3469, allocations: 25.7 kB / 0.5659 GB, free: 15.72 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001816/0.3471, allocations: 326.8 kB / 0.5662 GB, free: 15.39 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001383/0.3472, allocations: 31.98 kB / 0.5663 GB, free: 15.36 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001398/0.3474, allocations: 49.69 kB / 0.5663 GB, free: 15.31 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000253/0.3476, allocations: 81.61 kB / 0.5664 GB, free: 15.22 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/0.3476, allocations: 0 / 0.5664 GB, free: 15.22 MB / 414.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0003267/0.348, allocations: 125.5 kB / 0.5665 GB, free: 15.09 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.856e-05/0.348, allocations: 4 kB / 0.5665 GB, free: 15.09 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.823e-06/0.348, allocations: 0 / 0.5665 GB, free: 15.09 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.115e-05/0.348, allocations: 4 kB / 0.5665 GB, free: 15.09 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001181/0.3481, allocations: 19.92 kB / 0.5665 GB, free: 15.07 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.264e-06/0.3481, allocations: 0 / 0.5665 GB, free: 15.07 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.426e-05/0.3482, allocations: 11.98 kB / 0.5665 GB, free: 15.05 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.282e-05/0.3482, allocations: 8.281 kB / 0.5665 GB, free: 15.05 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,integrator.reset,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,change.u,$PRE.change.u,$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.0001161/0.3484, allocations: 117.8 kB / 0.5667 GB, free: 14.92 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.035e-05/0.3484, allocations: 19.83 kB / 0.5667 GB, free: 14.9 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.25e-05/0.3484, allocations: 16.66 kB / 0.5667 GB, free: 14.88 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.256e-06/0.3484, allocations: 0 / 0.5667 GB, free: 14.88 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.709e-06/0.3484, allocations: 0 / 0.5667 GB, free: 14.88 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.342e-06/0.3484, allocations: 3.984 kB / 0.5667 GB, free: 14.88 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006407/0.3491, allocations: 369.5 kB / 0.567 GB, free: 14.46 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.333e-06/0.3491, allocations: 0 / 0.567 GB, free: 14.46 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.413e-05/0.3492, allocations: 19.98 kB / 0.5671 GB, free: 14.45 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.964e-06/0.3492, allocations: 0 / 0.5671 GB, free: 14.45 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.052e-05/0.3492, allocations: 0 / 0.5671 GB, free: 14.45 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.302e-06/0.3492, allocations: 0 / 0.5671 GB, free: 14.45 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.028e-06/0.3492, allocations: 3.984 kB / 0.5671 GB, free: 14.44 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004993/0.3497, allocations: 259.6 kB / 0.5673 GB, free: 14.17 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.944e-05/0.3497, allocations: 11.94 kB / 0.5673 GB, free: 14.16 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.108e-05/0.3497, allocations: 0 / 0.5673 GB, free: 14.16 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001446/0.3499, allocations: 28.03 kB / 0.5674 GB, free: 14.13 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.693e-05/0.3499, allocations: 7.984 kB / 0.5674 GB, free: 14.12 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.387e-06/0.3499, allocations: 4 kB / 0.5674 GB, free: 14.12 MB / 414.1 MB Notification: Performance of sorting global known variables: time 9.977e-05/0.35, allocations: 113.3 kB / 0.5675 GB, free: 14.01 MB / 414.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.35, allocations: 0 / 0.5675 GB, free: 14.01 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002421/0.3503, allocations: 23.88 kB / 0.5675 GB, free: 13.99 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: 5 (integrator.reset,$whenCondition2,$whenCondition1,change.u,booleanPulse.pulseStart) * 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.0008164/0.3511, allocations: 0.7749 MB / 0.5683 GB, free: 13.19 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0003215/0.3514, allocations: 79.95 kB / 0.5683 GB, free: 13.11 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.534e-06/0.3514, allocations: 0 / 0.5683 GB, free: 13.11 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001473/0.3516, allocations: 47.91 kB / 0.5684 GB, free: 13.06 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003247/0.3519, allocations: 22.58 kB / 0.5684 GB, free: 13.04 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002689/0.3546, allocations: 1.694 MB / 0.5701 GB, free: 11.26 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003504/0.3549, allocations: 0.7003 MB / 0.5707 GB, free: 10.54 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.162e-05/0.355, allocations: 12.48 kB / 0.5707 GB, free: 10.52 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.592e-05/0.3551, allocations: 35.36 kB / 0.5708 GB, free: 10.49 MB / 414.1 MB Notification: Performance of SimCode: time 6.91e-07/0.3551, allocations: 0 / 0.5708 GB, free: 10.49 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02331/0.3784, allocations: 2.797 MB / 0.5735 GB, free: 7.832 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.29/11.66, allocations: 13.8 kB / 0.5735 GB, free: 7.824 MB / 414.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_4.1.0_ModelicaTest.Blocks.LimResetIntegrator.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Blocks.LimResetIntegrator.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Blocks.LimResetIntegrator.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Blocks.LimResetIntegrator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Blocks.LimResetIntegrator_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Blocks_LimResetIntegrator_fmu --startTime=0 --stopTime=5 --stepSize=0.000995025 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_Blocks_LimResetIntegrator.fmu > ModelicaTest_4.1.0_ModelicaTest.Blocks.LimResetIntegrator.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Blocks.LimResetIntegrator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/LimResetIntegrator/LimResetIntegrator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_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: 14.702907497994602]