Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.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.001163/0.001163, allocations: 75.77 kB / 21.18 MB, free: 3.379 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.001065/0.001065, allocations: 161 kB / 24.56 MB, free: 8 kB / 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 1.101/1.101, allocations: 177.1 MB / 205 MB, free: 5.613 MB / 186.7 MB " [Timeout remaining time 179] 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.2669/0.2669, allocations: 32.8 MB / 294.3 MB, free: 1.27 MB / 266.7 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: translateModel(ModelicaTest.Blocks.LimResetIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5025,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator") translateModel(ModelicaTest.Blocks.LimResetIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5025,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.593e-06/1.593e-06, allocations: 0 / 376 MB, free: 4.703 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.682e-05/2.841e-05, allocations: 2.312 kB / 376 MB, free: 4.699 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.002148/0.002177, allocations: 1.677 MB / 377.7 MB, free: 3.008 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008151/0.002992, allocations: 0.5647 MB / 378.2 MB, free: 2.438 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.829e-05/0.00307, allocations: 4 kB / 378.2 MB, free: 2.434 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001102/0.00318, allocations: 11.88 kB / 378.3 MB, free: 2.422 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 4.654e-05/0.003227, allocations: 19.8 kB / 378.3 MB, free: 2.402 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002979/0.003525, allocations: 91.75 kB / 378.4 MB, free: 2.312 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001405/0.003665, allocations: 115.7 kB / 378.5 MB, free: 2.199 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001141/0.003779, allocations: 23.92 kB / 378.5 MB, free: 2.176 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.865e-05/0.003868, allocations: 59.88 kB / 378.6 MB, free: 2.117 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.011e-05/0.003928, allocations: 39.81 kB / 378.6 MB, free: 2.078 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 2.055e-05/0.003949, allocations: 12 kB / 378.6 MB, free: 2.066 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.291e-05/0.003962, allocations: 12 kB / 378.6 MB, free: 2.055 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 2.231e-05/0.003984, allocations: 15.92 kB / 378.6 MB, free: 2.039 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 3.712e-05/0.004021, allocations: 27.91 kB / 378.7 MB, free: 2.012 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001257/0.004147, allocations: 67.73 kB / 378.7 MB, free: 1.945 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.467e-06/0.00415, allocations: 4 kB / 378.7 MB, free: 1.941 MB / 346.7 MB Notification: Performance of FrontEnd: time 8.22e-07/0.004151, allocations: 0 / 378.7 MB, free: 1.941 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.248e-06/0.004155, allocations: 0 / 378.7 MB, free: 1.941 MB / 346.7 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.0004744/0.00463, allocations: 439.9 kB / 379.2 MB, free: 1.473 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.53e-05/0.004665, allocations: 8.031 kB / 379.2 MB, free: 1.465 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.052e-05/0.004715, allocations: 20.89 kB / 379.2 MB, free: 1.445 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001643/0.00488, allocations: 148.4 kB / 379.3 MB, free: 1.273 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.994e-05/0.0049, allocations: 8.375 kB / 379.3 MB, free: 1.266 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.531e-05/0.004925, allocations: 12.33 kB / 379.4 MB, free: 1.254 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001634/0.005088, allocations: 94.28 kB / 379.4 MB, free: 1.156 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.482e-06/0.005095, allocations: 192 / 379.4 MB, free: 1.156 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.165e-05/0.005106, allocations: 4.375 kB / 379.5 MB, free: 1.152 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.055e-06/0.005114, allocations: 11.94 kB / 379.5 MB, free: 1.141 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.994e-05/0.005164, allocations: 23.92 kB / 379.5 MB, free: 1.117 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004091/0.005574, allocations: 339.5 kB / 379.8 MB, free: 0.75 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001158/0.005689, allocations: 62.98 kB / 379.9 MB, free: 0.6758 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.897e-05/0.005718, allocations: 15.75 kB / 379.9 MB, free: 0.6562 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.989e-06/0.005728, allocations: 4 kB / 379.9 MB, free: 0.6523 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000106/0.005834, allocations: 85.02 kB / 380 MB, free: 0.5547 MB / 346.7 MB Notification: Performance of pre-optimization done (n=7): time 1.042e-06/0.005835, allocations: 0 / 380 MB, free: 0.5547 MB / 346.7 MB Notification: Performance of matching and sorting (n=7): time 0.0001731/0.006008, allocations: 81.58 kB / 380.1 MB, free: 480 kB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.007e-05/0.006038, allocations: 51.41 kB / 380.1 MB, free: 416 kB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.008e-05/0.006129, allocations: 189.9 kB / 380.3 MB, free: 208 kB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.36e-05/0.006142, allocations: 33.69 kB / 380.3 MB, free: 168 kB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.211e-05/0.006194, allocations: 147.1 kB / 380.5 MB, free: 16 kB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.205e-05/0.006226, allocations: 24 kB / 380.5 MB, free: 15.99 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.493e-05/0.006261, allocations: 31.38 kB / 380.5 MB, free: 15.95 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001102/0.006371, allocations: 0.4999 MB / 381 MB, free: 15.44 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.698e-05/0.006398, allocations: 11.98 kB / 381 MB, free: 15.43 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.514e-05/0.006434, allocations: 31.38 kB / 381.1 MB, free: 15.39 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.819e-05/0.006482, allocations: 43.3 kB / 381.1 MB, free: 15.34 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.006484, allocations: 0 / 381.1 MB, free: 15.34 MB / 362.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 8.936e-05/0.006573, allocations: 77.58 kB / 381.2 MB, free: 15.26 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.311e-05/0.006586, allocations: 8 kB / 381.2 MB, free: 15.25 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.889e-06/0.006591, allocations: 0 / 381.2 MB, free: 15.25 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.787e-05/0.006609, allocations: 0 / 381.2 MB, free: 15.25 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.519e-05/0.006684, allocations: 19.97 kB / 381.2 MB, free: 15.23 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.232e-06/0.00669, allocations: 3.984 kB / 381.2 MB, free: 15.23 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.491e-05/0.006725, allocations: 15.95 kB / 381.2 MB, free: 15.21 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.67e-06/0.006731, allocations: 3.938 kB / 381.2 MB, free: 15.21 MB / 362.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: 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 7.961e-05/0.00681, allocations: 166.7 kB / 381.4 MB, free: 15.04 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.447e-05/0.006825, allocations: 7.953 kB / 381.4 MB, free: 15.03 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.193e-05/0.006857, allocations: 16.77 kB / 381.4 MB, free: 15.01 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.793e-06/0.006859, allocations: 0 / 381.4 MB, free: 15.01 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.307e-06/0.006862, allocations: 4 kB / 381.4 MB, free: 15 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.336e-06/0.006865, allocations: 0 / 381.4 MB, free: 15 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002582/0.007123, allocations: 345.3 kB / 381.8 MB, free: 14.62 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.803e-06/0.007125, allocations: 0 / 381.8 MB, free: 14.62 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.929e-05/0.007175, allocations: 7.984 kB / 381.8 MB, free: 14.62 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.645e-06/0.007177, allocations: 0 / 381.8 MB, free: 14.62 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.014e-05/0.007187, allocations: 8 kB / 381.8 MB, free: 14.61 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.262e-06/0.007189, allocations: 0 / 381.8 MB, free: 14.61 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/0.007191, allocations: 4.328 kB / 381.8 MB, free: 14.61 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001633/0.007354, allocations: 239.8 kB / 382 MB, free: 14.35 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.139e-05/0.007365, allocations: 11.98 kB / 382 MB, free: 14.34 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.409e-05/0.00738, allocations: 3.984 kB / 382 MB, free: 14.34 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.02e-05/0.00743, allocations: 8 kB / 382 MB, free: 14.33 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.318e-05/0.007483, allocations: 23.84 kB / 382.1 MB, free: 14.3 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.582e-06/0.00749, allocations: 4 kB / 382.1 MB, free: 14.3 MB / 362.7 MB Notification: Performance of sorting global known variables: time 5.393e-05/0.007543, allocations: 142.4 kB / 382.2 MB, free: 14.16 MB / 362.7 MB Notification: Performance of sort global known variables: time 5e-08/0.007544, allocations: 0 / 382.2 MB, free: 14.16 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0001561/0.0077, allocations: 19.95 kB / 382.2 MB, free: 14.14 MB / 362.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: 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 8.163e-05/0.007781, allocations: 99.23 kB / 382.3 MB, free: 14.04 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001357/0.007917, allocations: 51.61 kB / 382.4 MB, free: 13.98 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.007919, allocations: 0 / 382.4 MB, free: 13.98 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 5.699e-05/0.007976, allocations: 27.67 kB / 382.4 MB, free: 13.95 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002082/0.008184, allocations: 15.98 kB / 382.4 MB, free: 13.94 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004807/0.008664, allocations: 254 kB / 382.7 MB, free: 13.66 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.11e-05/0.008706, allocations: 63.34 kB / 382.7 MB, free: 13.58 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 2.811e-05/0.008734, allocations: 8.719 kB / 382.7 MB, free: 13.57 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.193e-05/0.008766, allocations: 12.5 kB / 382.7 MB, free: 13.56 MB / 362.7 MB Notification: Performance of SimCode: time 7.02e-07/0.008766, allocations: 0 / 382.7 MB, free: 13.56 MB / 362.7 MB Notification: Performance of Templates: time 0.002859/0.01162, allocations: 1.264 MB / 384 MB, free: 12.31 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.sim & ./ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/LimResetIntegrator/LimResetIntegrator.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.3853437043726444]