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.0009437/0.0009437, allocations: 76.17 kB / 9.931 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.004905/0.005849, allocations: 449.7 kB / 10.37 MB, free: 328 kB / 10.45 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.0009024/0.0009024, allocations: 169.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.003819/0.004721, allocations: 455.6 kB / 11.71 MB, free: 2.461 MB / 13.93 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.087/1.087, allocations: 177.2 MB / 189.6 MB, free: 5.309 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1042/1.191, allocations: 53.65 MB / 243.3 MB, free: 15.58 MB / 250.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.3369/0.3369, allocations: 32.8 MB / 276.8 MB, free: 15.87 MB / 282.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.02472/0.3616, allocations: 12.53 MB / 289.3 MB, free: 8.68 MB / 282.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.SelfResettingIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5010,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator") translateModel(ModelicaTest.Blocks.SelfResettingIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5010,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.893e-06/1.893e-06, allocations: 0 / 290.6 MB, free: 7.668 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.267e-05/2.457e-05, allocations: 3.438 kB / 290.6 MB, free: 7.664 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.001619/0.001644, allocations: 0.881 MB / 291.5 MB, free: 6.992 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0001017/0.001745, allocations: 49.64 kB / 291.5 MB, free: 6.953 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.778e-05/0.001803, allocations: 1.406 kB / 291.5 MB, free: 6.953 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 5.886e-05/0.001862, allocations: 3.938 kB / 291.5 MB, free: 6.949 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 1.55e-05/0.001877, allocations: 7.922 kB / 291.5 MB, free: 6.941 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 7.02e-05/0.001948, allocations: 19.97 kB / 291.6 MB, free: 6.926 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001021/0.00205, allocations: 39.23 kB / 291.6 MB, free: 6.902 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.07e-05/0.00214, allocations: 9.969 kB / 291.6 MB, free: 6.898 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.21e-05/0.002203, allocations: 31.19 kB / 291.6 MB, free: 6.875 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.991e-05/0.002242, allocations: 6.922 kB / 291.6 MB, free: 6.871 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 1.931e-05/0.002262, allocations: 2.344 kB / 291.6 MB, free: 6.871 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.566e-06/0.00227, allocations: 7.812 kB / 291.6 MB, free: 6.867 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 1.674e-05/0.002287, allocations: 7.594 kB / 291.7 MB, free: 6.863 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 2.211e-05/0.002309, allocations: 6.688 kB / 291.7 MB, free: 6.863 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 9.632e-05/0.002405, allocations: 26.55 kB / 291.7 MB, free: 6.848 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.64e-05/0.002422, allocations: 0 / 291.7 MB, free: 6.848 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.262e-06/0.002423, allocations: 5.438 kB / 291.7 MB, free: 6.844 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.74e-05/0.002441, allocations: 0 / 291.7 MB, free: 6.844 MB / 282.7 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.0004006/0.002841, allocations: 253 kB / 291.9 MB, free: 6.594 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.536e-05/0.002877, allocations: 9.406 kB / 291.9 MB, free: 6.594 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.856e-05/0.002905, allocations: 8.203 kB / 292 MB, free: 6.59 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001426/0.003048, allocations: 131.5 kB / 292.1 MB, free: 6.445 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.237e-06/0.003057, allocations: 1.969 kB / 292.1 MB, free: 6.445 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.667e-05/0.003074, allocations: 7.641 kB / 292.1 MB, free: 6.441 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.744e-05/0.003141, allocations: 42.41 kB / 292.1 MB, free: 6.402 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.705e-06/0.003149, allocations: 192 / 292.1 MB, free: 6.402 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.622e-06/0.003155, allocations: 1.438 kB / 292.1 MB, free: 6.402 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.612e-06/0.003162, allocations: 1.5 kB / 292.1 MB, free: 6.402 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.451e-05/0.003187, allocations: 12.94 kB / 292.2 MB, free: 6.395 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002794/0.003466, allocations: 171.1 kB / 292.3 MB, free: 6.234 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.567e-05/0.003512, allocations: 30.77 kB / 292.3 MB, free: 6.199 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.548e-06/0.003521, allocations: 6.203 kB / 292.4 MB, free: 6.191 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.793e-06/0.003528, allocations: 1.5 kB / 292.4 MB, free: 6.191 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.656e-05/0.003604, allocations: 60.72 kB / 292.4 MB, free: 6.125 MB / 282.7 MB Notification: Performance of pre-optimization done (n=3): time 8.31e-07/0.003605, allocations: 0 / 292.4 MB, free: 6.125 MB / 282.7 MB Notification: Performance of matching and sorting (n=3): time 9.295e-05/0.003698, allocations: 43.84 kB / 292.5 MB, free: 6.086 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.997e-05/0.003728, allocations: 52.88 kB / 292.5 MB, free: 6.023 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.19e-05/0.00379, allocations: 115.4 kB / 292.6 MB, free: 5.906 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.368e-05/0.003804, allocations: 29.7 kB / 292.7 MB, free: 5.871 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.169e-05/0.003835, allocations: 86.75 kB / 292.7 MB, free: 5.785 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.224e-05/0.003848, allocations: 9.266 kB / 292.7 MB, free: 5.777 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.805e-05/0.003876, allocations: 26.81 kB / 292.8 MB, free: 5.75 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 7.338e-05/0.003949, allocations: 312.6 kB / 293.1 MB, free: 5.438 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.771e-06/0.003955, allocations: 1.188 kB / 293.1 MB, free: 5.438 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.603e-05/0.003971, allocations: 14.84 kB / 293.1 MB, free: 5.422 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.501e-05/0.003996, allocations: 24.19 kB / 293.1 MB, free: 5.398 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.003998, allocations: 0 / 293.1 MB, free: 5.398 MB / 282.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 4.276e-05/0.004041, allocations: 49.66 kB / 293.2 MB, free: 5.355 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.201e-05/0.004053, allocations: 5.688 kB / 293.2 MB, free: 5.355 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.877e-06/0.004057, allocations: 0 / 293.2 MB, free: 5.355 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.287e-06/0.004066, allocations: 5.594 kB / 293.2 MB, free: 5.352 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.91e-05/0.004095, allocations: 3.688 kB / 293.2 MB, free: 5.352 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.589e-06/0.0041, allocations: 3.938 kB / 293.2 MB, free: 5.348 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.562e-05/0.004115, allocations: 2.375 kB / 293.2 MB, free: 5.348 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.448e-06/0.00412, allocations: 5.203 kB / 293.2 MB, free: 5.344 MB / 282.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: 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 5.393e-05/0.004174, allocations: 115.2 kB / 293.3 MB, free: 5.223 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.23e-06/0.004179, allocations: 6.5 kB / 293.3 MB, free: 5.219 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.849e-05/0.004197, allocations: 5.688 kB / 293.3 MB, free: 5.215 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.273e-06/0.004199, allocations: 0 / 293.3 MB, free: 5.215 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.084e-06/0.004201, allocations: 1.562 kB / 293.3 MB, free: 5.215 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.394e-06/0.004203, allocations: 4 kB / 293.3 MB, free: 5.211 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001419/0.004345, allocations: 201 kB / 293.5 MB, free: 5.008 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.036e-06/0.004348, allocations: 9.281 kB / 293.5 MB, free: 5 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.527e-05/0.004363, allocations: 5.172 kB / 293.5 MB, free: 4.996 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.17e-06/0.004368, allocations: 2.656 kB / 293.5 MB, free: 4.996 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.12e-07/0.004369, allocations: 0 / 293.5 MB, free: 4.996 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.223e-06/0.004377, allocations: 1.281 kB / 293.5 MB, free: 4.996 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.51e-07/0.004377, allocations: 0 / 293.5 MB, free: 4.996 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.11e-07/0.004378, allocations: 0 / 293.5 MB, free: 4.996 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.155e-05/0.004459, allocations: 141.9 kB / 293.7 MB, free: 4.855 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.487e-06/0.004469, allocations: 9.578 kB / 293.7 MB, free: 4.848 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.702e-05/0.004496, allocations: 5.5 kB / 293.7 MB, free: 4.844 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.128e-05/0.004517, allocations: 1.5 kB / 293.7 MB, free: 4.844 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.364e-06/0.004519, allocations: 48 / 293.7 MB, free: 4.844 MB / 282.7 MB Notification: Performance of sorting global known variables: time 1.387e-05/0.004533, allocations: 19.09 kB / 293.7 MB, free: 4.828 MB / 282.7 MB Notification: Performance of sort global known variables: time 4e-08/0.004533, allocations: 0 / 293.7 MB, free: 4.828 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001149/0.004648, allocations: 8.266 kB / 293.7 MB, free: 4.824 MB / 282.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: 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 7.747e-05/0.004726, allocations: 84.11 kB / 293.8 MB, free: 4.746 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 5.708e-05/0.004783, allocations: 22.84 kB / 293.8 MB, free: 4.73 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.886e-06/0.004786, allocations: 0 / 293.8 MB, free: 4.73 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 1.281e-05/0.004798, allocations: 18.86 kB / 293.8 MB, free: 4.715 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001289/0.004927, allocations: 11.05 kB / 293.8 MB, free: 4.711 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002219/0.005149, allocations: 141.8 kB / 294 MB, free: 4.57 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.318e-05/0.005182, allocations: 61.22 kB / 294 MB, free: 4.496 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 1.413e-05/0.005196, allocations: 0 / 294 MB, free: 4.496 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.591e-05/0.005232, allocations: 52.62 kB / 294.1 MB, free: 4.449 MB / 282.7 MB Notification: Performance of SimCode: time 5.51e-07/0.005233, allocations: 0 / 294.1 MB, free: 4.449 MB / 282.7 MB Notification: Performance of Templates: time 0.001967/0.0072, allocations: 0.552 MB / 294.7 MB, free: 4.004 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.makefile [Timeout 660] (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 & ./ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/SelfResettingIntegrator/SelfResettingIntegrator.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.0708562219515443]