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.0008598/0.0008598, allocations: 83.69 kB / 20.67 MB, free: 3.887 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.0009741/0.0009741, allocations: 170.3 kB / 23.95 MB, free: 0.6094 MB / 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 0.8724/0.8724, allocations: 177.1 MB / 204.3 MB, free: 5.754 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.2247/0.2247, allocations: 32.79 MB / 293.5 MB, free: 1.215 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: "" <> buildModelFMU(ModelicaTest.Blocks.SelfResettingIntegrator,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_SelfResettingIntegrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.SelfResettingIntegrator,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_SelfResettingIntegrator",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.653e-06/1.653e-06, allocations: 0 / 439.6 MB, free: 4.262 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.491e-05/1.656e-05, allocations: 8.25 kB / 439.6 MB, free: 4.254 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.001303/0.00132, allocations: 0.7995 MB / 440.4 MB, free: 3.453 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.0001841/0.001504, allocations: 43.77 kB / 440.4 MB, free: 3.41 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.978e-05/0.001564, allocations: 4 kB / 440.4 MB, free: 3.406 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001106/0.001674, allocations: 15.92 kB / 440.4 MB, free: 3.391 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 1.513e-05/0.001689, allocations: 3.938 kB / 440.4 MB, free: 3.387 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001072/0.001797, allocations: 19.91 kB / 440.5 MB, free: 3.367 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001006/0.001897, allocations: 31.92 kB / 440.5 MB, free: 3.336 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.97e-05/0.001997, allocations: 19.92 kB / 440.5 MB, free: 3.316 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.738e-05/0.002034, allocations: 15.98 kB / 440.5 MB, free: 3.301 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.767e-05/0.002072, allocations: 11.97 kB / 440.5 MB, free: 3.289 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 2.088e-05/0.002093, allocations: 4 kB / 440.5 MB, free: 3.285 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.526e-06/0.002101, allocations: 0 / 440.5 MB, free: 3.285 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 1.727e-05/0.002119, allocations: 11.94 kB / 440.5 MB, free: 3.273 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 1.951e-05/0.002138, allocations: 12 kB / 440.6 MB, free: 3.262 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001012/0.002239, allocations: 35.88 kB / 440.6 MB, free: 3.227 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.833e-06/0.002241, allocations: 0 / 440.6 MB, free: 3.227 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.213e-06/0.002242, allocations: 0 / 440.6 MB, free: 3.227 MB / 410.7 MB Notification: Performance of Transformations before backend: time 3.797e-06/0.002246, allocations: 0 / 440.6 MB, free: 3.227 MB / 410.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.0003199/0.002566, allocations: 279.1 kB / 440.9 MB, free: 2.918 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.623e-05/0.002602, allocations: 15.97 kB / 440.9 MB, free: 2.902 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.729e-05/0.00263, allocations: 38.69 kB / 440.9 MB, free: 2.855 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.527e-05/0.002655, allocations: 8.891 kB / 440.9 MB, free: 2.848 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001478/0.002803, allocations: 125.7 kB / 441.1 MB, free: 2.699 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.827e-06/0.002811, allocations: 8.375 kB / 441.1 MB, free: 2.691 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.473e-05/0.002826, allocations: 4.375 kB / 441.1 MB, free: 2.688 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.772e-05/0.002914, allocations: 54.23 kB / 441.1 MB, free: 2.629 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.873e-06/0.002921, allocations: 192 / 441.1 MB, free: 2.629 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.244e-06/0.002928, allocations: 4.312 kB / 441.1 MB, free: 2.625 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.17e-06/0.002933, allocations: 4.125 kB / 441.1 MB, free: 2.621 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.883e-05/0.002972, allocations: 15.94 kB / 441.1 MB, free: 2.605 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003663/0.003338, allocations: 247.9 kB / 441.4 MB, free: 2.32 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.655e-05/0.003385, allocations: 26.58 kB / 441.4 MB, free: 2.285 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.348e-05/0.003398, allocations: 8.859 kB / 441.4 MB, free: 2.273 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.885e-06/0.003406, allocations: 3.938 kB / 441.4 MB, free: 2.27 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.564e-05/0.003472, allocations: 55.42 kB / 441.5 MB, free: 2.203 MB / 410.7 MB Notification: Performance of pre-optimization done (n=3): time 8.32e-07/0.003473, allocations: 0 / 441.5 MB, free: 2.203 MB / 410.7 MB Notification: Performance of matching and sorting (n=3): time 0.0001195/0.003592, allocations: 53.69 kB / 441.5 MB, free: 2.145 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.737e-05/0.00362, allocations: 51.41 kB / 441.6 MB, free: 2.082 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.424e-05/0.003684, allocations: 117.8 kB / 441.7 MB, free: 1.957 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 9.368e-06/0.003693, allocations: 25.7 kB / 441.7 MB, free: 1.926 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.45e-05/0.003738, allocations: 96.08 kB / 441.8 MB, free: 1.828 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.222e-05/0.00375, allocations: 7.891 kB / 441.8 MB, free: 1.82 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.427e-05/0.003774, allocations: 17.72 kB / 441.8 MB, free: 1.797 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 7.272e-05/0.003847, allocations: 330.8 kB / 442.2 MB, free: 1.465 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.204e-05/0.003859, allocations: 4 kB / 442.2 MB, free: 1.461 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.725e-05/0.003876, allocations: 17.72 kB / 442.2 MB, free: 1.438 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.036e-05/0.003907, allocations: 21.72 kB / 442.2 MB, free: 1.41 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.953e-06/0.003909, allocations: 0 / 442.2 MB, free: 1.41 MB / 410.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 5.174e-05/0.00396, allocations: 53.62 kB / 442.3 MB, free: 1.352 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.116e-05/0.003971, allocations: 4 kB / 442.3 MB, free: 1.348 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.388e-06/0.003976, allocations: 4 kB / 442.3 MB, free: 1.344 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.828e-06/0.003986, allocations: 0 / 442.3 MB, free: 1.344 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.401e-05/0.00401, allocations: 12.39 kB / 442.3 MB, free: 1.332 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.969e-06/0.004015, allocations: 0 / 442.3 MB, free: 1.332 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.812e-05/0.004033, allocations: 7.953 kB / 442.3 MB, free: 1.324 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.409e-06/0.004037, allocations: 4 kB / 442.3 MB, free: 1.32 MB / 410.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.651e-05/0.004094, allocations: 126 kB / 442.4 MB, free: 1.188 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.248e-06/0.004098, allocations: 0 / 442.4 MB, free: 1.188 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.73e-05/0.004115, allocations: 8 kB / 442.4 MB, free: 1.176 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.274e-06/0.004117, allocations: 7.984 kB / 442.4 MB, free: 1.168 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.677e-06/0.004121, allocations: 0 / 442.4 MB, free: 1.168 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.595e-06/0.004124, allocations: 0 / 442.4 MB, free: 1.168 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001802/0.004304, allocations: 277.5 kB / 442.7 MB, free: 0.8477 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.82e-07/0.004305, allocations: 0 / 442.7 MB, free: 0.8477 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.339e-05/0.004318, allocations: 3.984 kB / 442.7 MB, free: 0.8438 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.42e-07/0.004319, allocations: 3.938 kB / 442.7 MB, free: 0.8398 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.093e-06/0.004326, allocations: 4 kB / 442.7 MB, free: 0.8359 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.71e-07/0.004327, allocations: 0 / 442.7 MB, free: 0.8359 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.004327, allocations: 0 / 442.7 MB, free: 0.8359 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.729e-05/0.004425, allocations: 151.5 kB / 442.9 MB, free: 0.6719 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.305e-06/0.004433, allocations: 7.984 kB / 442.9 MB, free: 0.6641 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.688e-06/0.004443, allocations: 0 / 442.9 MB, free: 0.6641 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.843e-05/0.004471, allocations: 3.984 kB / 442.9 MB, free: 0.6602 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.303e-05/0.004494, allocations: 8 kB / 442.9 MB, free: 0.6523 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.938e-06/0.004498, allocations: 4 kB / 442.9 MB, free: 0.6484 MB / 410.7 MB Notification: Performance of sorting global known variables: time 3.359e-05/0.004532, allocations: 95.27 kB / 443 MB, free: 0.5547 MB / 410.7 MB Notification: Performance of sort global known variables: time 5e-08/0.004532, allocations: 0 / 443 MB, free: 0.5547 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0001528/0.004684, allocations: 4 kB / 443 MB, free: 0.5508 MB / 410.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 0.1593/0.164, allocations: 0.6762 MB / 443.7 MB, free: 45.72 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0001041/0.1641, allocations: 16.33 kB / 443.7 MB, free: 45.72 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.066e-06/0.1641, allocations: 1.406 kB / 443.7 MB, free: 45.72 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 1.63e-05/0.1641, allocations: 7.562 kB / 443.7 MB, free: 45.72 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002651/0.1643, allocations: 19 kB / 443.7 MB, free: 45.72 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008021/0.1651, allocations: 1.285 MB / 445 MB, free: 44.57 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.981e-05/0.1652, allocations: 72.44 kB / 445.1 MB, free: 44.5 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 2.121e-05/0.1652, allocations: 9.031 kB / 445.1 MB, free: 44.5 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.224e-05/0.1653, allocations: 16.56 kB / 445.1 MB, free: 44.5 MB / 410.7 MB Notification: Performance of SimCode: time 6.61e-07/0.1653, allocations: 0 / 445.1 MB, free: 44.5 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01547/0.1807, allocations: 2.239 MB / 447.3 MB, free: 43.67 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.947/7.128, allocations: 6.125 kB / 447.3 MB, free: 43.67 MB / 410.7 MB " [Timeout remaining time 653] (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 & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000998004 ModelicaTest_4_0_0_ModelicaTest_Blocks_SelfResettingIntegrator.fmu > ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator_res.csv","/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] "" Variables in the reference:time,integrator.y Variables in the result:time,integrator.y [Calling sys.exit(0), Time elapsed: 9.144228626042604]