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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001469/0.001469, allocations: 104.6 kB / 21.22 MB, free: 0.6758 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001446/0.001446, allocations: 189.2 kB / 24.51 MB, free: 4.047 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.484/1.484, allocations: 225.6 MB / 253.3 MB, free: 13 MB / 206.1 MB " [Timeout remaining time 178] 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.2495/0.2495, allocations: 44.91 MB / 353.5 MB, free: 11.82 MB / 286.1 MB " [Timeout remaining time 179] 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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 0.002042/0.002042, allocations: 67.88 kB / 497.7 MB, free: 1.02 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4026/0.4046, allocations: 64.29 MB / 0.5488 GB, free: 13.17 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.002425/0.4071, allocations: 0.8344 MB / 0.5496 GB, free: 12.55 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002463/0.4073, allocations: 48.53 kB / 0.5497 GB, free: 12.51 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.929e-05/0.4074, allocations: 0 / 0.5497 GB, free: 12.51 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001295/0.4075, allocations: 9.562 kB / 0.5497 GB, free: 12.5 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 2.268e-05/0.4075, allocations: 3.938 kB / 0.5497 GB, free: 12.5 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001587/0.4077, allocations: 23.83 kB / 0.5497 GB, free: 12.48 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001331/0.4078, allocations: 38.66 kB / 0.5497 GB, free: 12.46 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001198/0.4079, allocations: 24.84 kB / 0.5498 GB, free: 12.44 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.181e-05/0.408, allocations: 8.469 kB / 0.5498 GB, free: 12.44 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.566e-05/0.408, allocations: 26.73 kB / 0.5498 GB, free: 12.41 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.678e-05/0.4081, allocations: 2.719 kB / 0.5498 GB, free: 12.41 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.274e-05/0.4081, allocations: 3.062 kB / 0.5498 GB, free: 12.41 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.415e-05/0.4081, allocations: 5.438 kB / 0.5498 GB, free: 12.41 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 4.008e-05/0.4081, allocations: 16.34 kB / 0.5498 GB, free: 12.4 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000129/0.4083, allocations: 35.91 kB / 0.5498 GB, free: 12.37 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.49e-06/0.4083, allocations: 1.531 kB / 0.5498 GB, free: 12.37 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.402e-06/0.4083, allocations: 3.938 kB / 0.5499 GB, free: 12.37 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.523e-06/0.4083, allocations: 0 / 0.5499 GB, free: 12.37 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0005353/0.4088, allocations: 283.1 kB / 0.5501 GB, free: 12.07 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.262e-05/0.4088, allocations: 10.27 kB / 0.5501 GB, free: 12.07 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.43e-05/0.4089, allocations: 7.703 kB / 0.5501 GB, free: 12.07 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002305/0.4091, allocations: 121.9 kB / 0.5503 GB, free: 11.93 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.509e-05/0.4091, allocations: 5.594 kB / 0.5503 GB, free: 11.93 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.577e-05/0.4092, allocations: 8.562 kB / 0.5503 GB, free: 11.93 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001357/0.4093, allocations: 48.41 kB / 0.5503 GB, free: 11.88 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.919e-06/0.4093, allocations: 192 / 0.5503 GB, free: 11.88 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.305e-05/0.4093, allocations: 5.562 kB / 0.5503 GB, free: 11.88 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.43e-06/0.4093, allocations: 4 kB / 0.5503 GB, free: 11.88 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.497e-05/0.4094, allocations: 20.59 kB / 0.5503 GB, free: 11.86 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005725/0.41, allocations: 265.1 kB / 0.5506 GB, free: 11.59 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.513e-05/0.41, allocations: 23.03 kB / 0.5506 GB, free: 11.56 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.358e-05/0.41, allocations: 11.33 kB / 0.5506 GB, free: 11.55 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.025e-06/0.4101, allocations: 0 / 0.5506 GB, free: 11.55 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.951e-05/0.4101, allocations: 54.75 kB / 0.5507 GB, free: 11.49 MB / 398.1 MB Notification: Performance of pre-optimization done (n=3): time 8.72e-07/0.4101, allocations: 0 / 0.5507 GB, free: 11.49 MB / 398.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001633/0.4103, allocations: 55.2 kB / 0.5507 GB, free: 11.44 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.048e-05/0.4103, allocations: 52.56 kB / 0.5508 GB, free: 11.38 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001334/0.4105, allocations: 119 kB / 0.5509 GB, free: 11.27 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.923e-05/0.4105, allocations: 25.7 kB / 0.5509 GB, free: 11.23 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.994e-05/0.4106, allocations: 87.23 kB / 0.551 GB, free: 11.15 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.212e-05/0.4106, allocations: 12.91 kB / 0.551 GB, free: 11.14 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.654e-05/0.4106, allocations: 17.44 kB / 0.551 GB, free: 11.12 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001638/0.4108, allocations: 320.9 kB / 0.5513 GB, free: 10.8 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.218e-05/0.4108, allocations: 3.344 kB / 0.5513 GB, free: 10.8 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.011e-05/0.4109, allocations: 22.2 kB / 0.5514 GB, free: 10.77 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.923e-05/0.4109, allocations: 25.62 kB / 0.5514 GB, free: 10.75 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.4109, allocations: 1.156 kB / 0.5514 GB, free: 10.75 MB / 398.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 9.813e-05/0.411, allocations: 68.08 kB / 0.5515 GB, free: 10.69 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.578e-05/0.411, allocations: 5.594 kB / 0.5515 GB, free: 10.69 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.681e-06/0.411, allocations: 1.094 kB / 0.5515 GB, free: 10.69 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.666e-05/0.411, allocations: 1.062 kB / 0.5515 GB, free: 10.69 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.305e-05/0.4111, allocations: 7.125 kB / 0.5515 GB, free: 10.69 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.775e-06/0.4111, allocations: 0.9062 kB / 0.5515 GB, free: 10.69 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.804e-05/0.4111, allocations: 1.094 kB / 0.5515 GB, free: 10.69 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.191e-05/0.4111, allocations: 9.703 kB / 0.5515 GB, free: 10.68 MB / 398.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 0.0001027/0.4112, allocations: 124.6 kB / 0.5516 GB, free: 10.55 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.576e-05/0.4112, allocations: 6.703 kB / 0.5516 GB, free: 10.55 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.918e-05/0.4113, allocations: 4.969 kB / 0.5516 GB, free: 10.54 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.725e-06/0.4113, allocations: 1.062 kB / 0.5516 GB, free: 10.54 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.617e-06/0.4113, allocations: 0 / 0.5516 GB, free: 10.54 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.078e-06/0.4113, allocations: 0.9062 kB / 0.5516 GB, free: 10.54 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003379/0.4116, allocations: 272.2 kB / 0.5519 GB, free: 10.24 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.4116, allocations: 0 / 0.5519 GB, free: 10.24 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.029e-05/0.4116, allocations: 2.469 kB / 0.5519 GB, free: 10.24 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.826e-06/0.4117, allocations: 1.031 kB / 0.5519 GB, free: 10.24 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.017e-05/0.4117, allocations: 8.047 kB / 0.5519 GB, free: 10.23 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.509e-06/0.4117, allocations: 4.969 kB / 0.5519 GB, free: 10.23 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.488e-06/0.4117, allocations: 3.984 kB / 0.5519 GB, free: 10.23 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001707/0.4118, allocations: 152.8 kB / 0.552 GB, free: 10.08 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.292e-05/0.4119, allocations: 5.172 kB / 0.552 GB, free: 10.07 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.389e-05/0.4119, allocations: 1.156 kB / 0.552 GB, free: 10.07 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.722e-05/0.4119, allocations: 5.094 kB / 0.5521 GB, free: 10.07 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.287e-05/0.412, allocations: 5.25 kB / 0.5521 GB, free: 10.07 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.22e-06/0.412, allocations: 1.188 kB / 0.5521 GB, free: 10.07 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001194/0.4121, allocations: 96.77 kB / 0.5521 GB, free: 9.98 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4121, allocations: 0 / 0.5521 GB, free: 9.98 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002222/0.4123, allocations: 17.45 kB / 0.5522 GB, free: 9.969 MB / 398.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 9.122e-05/0.4124, allocations: 90.38 kB / 0.5523 GB, free: 9.883 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001117/0.4125, allocations: 22.86 kB / 0.5523 GB, free: 9.871 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.864e-06/0.4125, allocations: 0 / 0.5523 GB, free: 9.871 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 1.988e-05/0.4125, allocations: 10.19 kB / 0.5523 GB, free: 9.867 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002903/0.4128, allocations: 16.42 kB / 0.5523 GB, free: 9.855 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003504/0.4132, allocations: 137 kB / 0.5524 GB, free: 9.723 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004689/0.4136, allocations: 0.6895 MB / 0.5531 GB, free: 9.016 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 2.396e-05/0.4137, allocations: 7.469 kB / 0.5531 GB, free: 9.012 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.463e-05/0.4137, allocations: 9.469 kB / 0.5531 GB, free: 9.008 MB / 398.1 MB Notification: Performance of SimCode: time 3.21e-07/0.4137, allocations: 3.938 kB / 0.5531 GB, free: 9.004 MB / 398.1 MB Notification: Performance of Templates: time 0.003338/0.417, allocations: 0.5499 MB / 0.5537 GB, free: 8.723 MB / 398.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: 5.216097561642528]