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.001275/0.001275, allocations: 84.47 kB / 20.68 MB, free: 1.023 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.001353/0.001353, allocations: 164.4 kB / 23.96 MB, free: 4.145 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.369/1.369, allocations: 177.1 MB / 204.3 MB, free: 9.168 MB / 190.1 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.1961/0.1961, allocations: 32.82 MB / 293.5 MB, free: 20 kB / 270.1 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.262e-06/1.262e-06, allocations: 0 / 440.1 MB, free: 8.172 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.755e-05/1.882e-05, allocations: 6.281 kB / 440.1 MB, free: 8.164 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.001717/0.001736, allocations: 0.8035 MB / 440.9 MB, free: 7.363 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.000187/0.001923, allocations: 43.83 kB / 440.9 MB, free: 7.32 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.215e-05/0.001985, allocations: 3.938 kB / 440.9 MB, free: 7.316 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 9.374e-05/0.002079, allocations: 11.88 kB / 440.9 MB, free: 7.305 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 1.589e-05/0.002095, allocations: 4 kB / 440.9 MB, free: 7.301 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001026/0.002198, allocations: 23.91 kB / 441 MB, free: 7.277 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001032/0.002301, allocations: 35.91 kB / 441 MB, free: 7.242 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.615e-05/0.002387, allocations: 11.98 kB / 441 MB, free: 7.23 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.523e-05/0.002432, allocations: 19.92 kB / 441 MB, free: 7.211 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.266e-05/0.002465, allocations: 8 kB / 441 MB, free: 7.203 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.706e-05/0.002482, allocations: 0 / 441 MB, free: 7.203 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.788e-06/0.002492, allocations: 4 kB / 441 MB, free: 7.199 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 2.107e-05/0.002513, allocations: 11.91 kB / 441.1 MB, free: 7.188 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 1.992e-05/0.002533, allocations: 12 kB / 441.1 MB, free: 7.176 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 9.072e-05/0.002623, allocations: 39.88 kB / 441.1 MB, free: 7.137 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.92e-06/0.002628, allocations: 4 kB / 441.1 MB, free: 7.133 MB / 366.1 MB Notification: Performance of FrontEnd: time 4.8e-07/0.002629, allocations: 0 / 441.1 MB, free: 7.133 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.785e-06/0.002631, allocations: 0 / 441.1 MB, free: 7.133 MB / 366.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.0003987/0.00303, allocations: 283 kB / 441.4 MB, free: 6.82 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.441e-05/0.003065, allocations: 8.031 kB / 441.4 MB, free: 6.812 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.641e-05/0.003091, allocations: 4.938 kB / 441.4 MB, free: 6.809 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001554/0.003246, allocations: 121.7 kB / 441.5 MB, free: 6.664 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.225e-05/0.003259, allocations: 4.375 kB / 441.5 MB, free: 6.66 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.943e-05/0.003278, allocations: 8.375 kB / 441.5 MB, free: 6.652 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001175/0.003396, allocations: 50.25 kB / 441.6 MB, free: 6.598 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.205e-06/0.003404, allocations: 192 / 441.6 MB, free: 6.598 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.206e-06/0.003412, allocations: 4.312 kB / 441.6 MB, free: 6.594 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.811e-06/0.003418, allocations: 4.375 kB / 441.6 MB, free: 6.59 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.405e-05/0.003462, allocations: 19.92 kB / 441.6 MB, free: 6.57 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004179/0.00388, allocations: 228.4 kB / 441.8 MB, free: 6.316 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.774e-05/0.003937, allocations: 22.58 kB / 441.9 MB, free: 6.285 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.993e-05/0.003957, allocations: 12.86 kB / 441.9 MB, free: 6.27 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.99e-06/0.003962, allocations: 4 kB / 441.9 MB, free: 6.266 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.767e-05/0.00404, allocations: 55.34 kB / 441.9 MB, free: 6.199 MB / 366.1 MB Notification: Performance of pre-optimization done (n=3): time 1.042e-06/0.004041, allocations: 0 / 441.9 MB, free: 6.199 MB / 366.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001304/0.004171, allocations: 49.67 kB / 442 MB, free: 6.145 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.146e-05/0.004213, allocations: 55.34 kB / 442 MB, free: 6.078 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.778e-05/0.004301, allocations: 121.8 kB / 442.1 MB, free: 5.949 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.562e-05/0.004316, allocations: 25.7 kB / 442.2 MB, free: 5.918 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.578e-05/0.004382, allocations: 92.08 kB / 442.3 MB, free: 5.824 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.546e-05/0.004397, allocations: 11.89 kB / 442.3 MB, free: 5.812 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.222e-05/0.00443, allocations: 17.72 kB / 442.3 MB, free: 5.789 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001345/0.004564, allocations: 314.8 kB / 442.6 MB, free: 5.473 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.88e-05/0.004583, allocations: 8 kB / 442.6 MB, free: 5.465 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.606e-05/0.004609, allocations: 17.7 kB / 442.6 MB, free: 5.441 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.737e-05/0.004666, allocations: 33.66 kB / 442.7 MB, free: 5.402 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.283e-06/0.004668, allocations: 0 / 442.7 MB, free: 5.402 MB / 366.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 8.353e-05/0.004751, allocations: 53.56 kB / 442.7 MB, free: 5.344 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.455e-05/0.004766, allocations: 8 kB / 442.7 MB, free: 5.336 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.376e-06/0.004769, allocations: 0 / 442.7 MB, free: 5.336 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.197e-05/0.004781, allocations: 0 / 442.7 MB, free: 5.336 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.852e-05/0.00481, allocations: 4 kB / 442.7 MB, free: 5.332 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.878e-06/0.004814, allocations: 4.031 kB / 442.7 MB, free: 5.328 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.798e-05/0.004842, allocations: 8 kB / 442.7 MB, free: 5.32 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.587e-06/0.004845, allocations: 0 / 442.7 MB, free: 5.32 MB / 366.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 9.631e-05/0.004941, allocations: 118.5 kB / 442.8 MB, free: 5.195 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.207e-05/0.004954, allocations: 7.891 kB / 442.9 MB, free: 5.188 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.964e-05/0.004983, allocations: 12 kB / 442.9 MB, free: 5.168 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.152e-06/0.004984, allocations: 0 / 442.9 MB, free: 5.168 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.076e-06/0.004987, allocations: 0 / 442.9 MB, free: 5.168 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.304e-06/0.00499, allocations: 0 / 442.9 MB, free: 5.168 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002692/0.005259, allocations: 242.1 kB / 443.1 MB, free: 4.895 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.00526, allocations: 4 kB / 443.1 MB, free: 4.891 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.817e-05/0.005288, allocations: 4 kB / 443.1 MB, free: 4.887 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.463e-06/0.00529, allocations: 0 / 443.1 MB, free: 4.887 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.433e-06/0.005296, allocations: 0 / 443.1 MB, free: 4.887 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.011e-06/0.005297, allocations: 0 / 443.1 MB, free: 4.887 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.887e-06/0.005301, allocations: 4 kB / 443.1 MB, free: 4.883 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001555/0.005456, allocations: 159.3 kB / 443.3 MB, free: 4.711 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.115e-06/0.005465, allocations: 3.953 kB / 443.3 MB, free: 4.707 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.229e-05/0.005477, allocations: 4.422 kB / 443.3 MB, free: 4.703 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.417e-05/0.005531, allocations: 8.031 kB / 443.3 MB, free: 4.695 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.013e-05/0.005561, allocations: 3.938 kB / 443.3 MB, free: 4.691 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.416e-06/0.005565, allocations: 4.062 kB / 443.3 MB, free: 4.688 MB / 366.1 MB Notification: Performance of sorting global known variables: time 5.366e-05/0.005618, allocations: 91.27 kB / 443.4 MB, free: 4.598 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.005618, allocations: 0 / 443.4 MB, free: 4.598 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002085/0.005827, allocations: 4 kB / 443.4 MB, free: 4.594 MB / 366.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 8.257e-05/0.005909, allocations: 91.25 kB / 443.5 MB, free: 4.496 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 8.137e-05/0.005991, allocations: 27.91 kB / 443.5 MB, free: 4.469 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.443e-06/0.005992, allocations: 0 / 443.5 MB, free: 4.469 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 1.621e-05/0.006008, allocations: 4 kB / 443.5 MB, free: 4.465 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000251/0.006259, allocations: 15.92 kB / 443.5 MB, free: 4.449 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002781/0.006537, allocations: 132.8 kB / 443.7 MB, free: 4.293 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.316e-05/0.006611, allocations: 71.33 kB / 443.7 MB, free: 4.203 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 1.721e-05/0.006628, allocations: 4 kB / 443.7 MB, free: 4.199 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.954e-05/0.006647, allocations: 8.5 kB / 443.7 MB, free: 4.191 MB / 366.1 MB Notification: Performance of SimCode: time 4.11e-07/0.006648, allocations: 0 / 443.7 MB, free: 4.191 MB / 366.1 MB Notification: Performance of Templates: time 0.002738/0.009386, allocations: 0.5031 MB / 444.2 MB, free: 3.695 MB / 366.1 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=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_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: 4.35276710614562]