Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.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.001353/0.001353, allocations: 123 kB / 17.79 MB, free: 5.266 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.00135/0.00135, allocations: 189.2 kB / 20.73 MB, free: 2.328 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.468/1.468, allocations: 225.6 MB / 249.1 MB, free: 3.602 MB / 190.1 MB " [Timeout remaining time 178] 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: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar_analytic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar_analytic",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001499/0.001499, allocations: 51.91 kB / 365.6 MB, free: 0.8594 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1175/0.119, allocations: 52.14 MB / 417.8 MB, free: 12.62 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic): time 0.01646/0.1355, allocations: 13.54 MB / 431.3 MB, free: 15.02 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01096/0.1465, allocations: 4.892 MB / 436.2 MB, free: 10.11 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002489/0.1489, allocations: 103.5 kB / 436.3 MB, free: 10.01 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00805/0.157, allocations: 4.245 MB / 440.6 MB, free: 5.754 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0063/0.1633, allocations: 2.198 MB / 442.8 MB, free: 3.547 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002937/0.1662, allocations: 1.103 MB / 443.9 MB, free: 2.441 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.2789/0.4451, allocations: 5.96 MB / 449.8 MB, free: 8.223 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007255/0.4523, allocations: 4.412 MB / 454.2 MB, free: 7.898 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005178/0.4575, allocations: 2.196 MB / 456.4 MB, free: 7.746 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006354/0.4639, allocations: 3.086 MB / 459.5 MB, free: 7.469 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00251/0.4664, allocations: 0.4923 MB / 460 MB, free: 7.469 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005818/0.4722, allocations: 1.693 MB / 461.7 MB, free: 7.469 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005257/0.4775, allocations: 2.666 MB / 464.4 MB, free: 7.18 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006591/0.4841, allocations: 2.954 MB / 467.3 MB, free: 5.309 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01537/0.4994, allocations: 9.704 MB / 477 MB, free: 0.7969 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.824e-06/0.4994, allocations: 5.438 kB / 477 MB, free: 0.793 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.4994, allocations: 4 kB / 477 MB, free: 0.7891 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0003973/0.4998, allocations: 0 / 477 MB, free: 0.7891 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: 1743 * Number of variables: 1743 Notification: Performance of Generate backend data structure: time 0.02113/0.521, allocations: 6.373 MB / 483.4 MB, free: 12.48 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.919e-05/0.521, allocations: 8.688 kB / 483.4 MB, free: 12.48 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002701/0.5237, allocations: 0.9292 MB / 484.3 MB, free: 11.91 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03863/0.5623, allocations: 6.052 MB / 490.4 MB, free: 8.93 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01207/0.5744, allocations: 4.475 MB / 494.9 MB, free: 4.762 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003293/0.5747, allocations: 306.9 kB / 495.2 MB, free: 4.496 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002769/0.5775, allocations: 438.9 kB / 495.6 MB, free: 4.102 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02919/0.6067, allocations: 12.32 MB / 0.496 GB, free: 7.25 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001856/0.6069, allocations: 44.67 kB / 0.4961 GB, free: 7.227 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006996/0.6076, allocations: 197.7 kB / 0.4962 GB, free: 7.07 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003682/0.6113, allocations: 2.036 MB / 0.4982 GB, free: 5.059 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02516/0.6364, allocations: 10.35 MB / 0.5083 GB, free: 10.89 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07046/0.7069, allocations: 43.99 MB / 0.5513 GB, free: 14.29 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01387/0.7208, allocations: 4.658 MB / 0.5558 GB, free: 9.512 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003129/0.7239, allocations: 1.835 MB / 0.5576 GB, free: 7.672 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01303/0.7369, allocations: 7.009 MB / 0.5645 GB, free: 460 kB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.1e-05/0.737, allocations: 55.41 kB / 0.5645 GB, free: 400 kB / 462.1 MB Notification: Performance of pre-optimization done (n=179): time 8.727e-06/0.737, allocations: 4 kB / 0.5645 GB, free: 396 kB / 462.1 MB Notification: Performance of matching and sorting (n=223): time 0.07059/0.8076, allocations: 19.36 MB / 0.5835 GB, free: 13.06 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000152/0.8077, allocations: 205.9 kB / 0.5836 GB, free: 12.82 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00804/0.8158, allocations: 4.494 MB / 0.588 GB, free: 8.309 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005645/0.8163, allocations: 61.14 kB / 0.5881 GB, free: 8.246 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003498/0.8198, allocations: 3.7 MB / 0.5917 GB, free: 4.559 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001471/0.8213, allocations: 0.873 MB / 0.5926 GB, free: 3.695 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002158/0.8235, allocations: 1.278 MB / 0.5938 GB, free: 2.41 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001494/0.8236, allocations: 305.1 kB / 0.5941 GB, free: 2.109 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003865/0.8275, allocations: 2.229 MB / 0.5963 GB, free: 15.88 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007301/0.8348, allocations: 5.976 MB / 0.6021 GB, free: 8.109 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01265/0.8474, allocations: 8.91 MB / 0.6108 GB, free: 13.49 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001381/0.8476, allocations: 36 kB / 0.6108 GB, free: 13.46 MB / 0.5137 GB Notification: Performance of matching and sorting (n=830) (initialization): time 0.02026/0.8678, allocations: 9.052 MB / 0.6197 GB, free: 4.402 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001574/0.868, allocations: 60 kB / 0.6197 GB, free: 4.344 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002319/0.8682, allocations: 132 kB / 0.6199 GB, free: 4.215 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00425/0.8725, allocations: 1.206 MB / 0.621 GB, free: 3.004 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005089/0.8775, allocations: 1.423 MB / 0.6224 GB, free: 1.578 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01349/0.891, allocations: 8.014 MB / 0.6303 GB, free: 9.434 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005677/0.8967, allocations: 343.5 kB / 0.6306 GB, free: 9.098 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001409/0.8981, allocations: 388 kB / 0.631 GB, free: 8.719 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 599 * Number of states: 0 () * Number of discrete variables: 46 (jointSSP.prismatic.positiveBranch,b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],jointSSP.rod2Color[3],jointSSP.rod2Color[2],jointSSP.rod2Color[1],jointSSP.sphereColor[3],jointSSP.sphereColor[2],jointSSP.sphereColor[1],jointSSP.rod1Color[3],jointSSP.rod1Color[2],jointSSP.rod1Color[1],jointSSP.rod1.massColor[3],jointSSP.rod1.massColor[2],jointSSP.rod1.massColor[1],jointSSP.boxColor[3],jointSSP.boxColor[2],jointSSP.boxColor[1],b3.color[3],b3.color[2],b3.color[1],b1.color[3],b1.color[2],b1.color[1],b1.body.sphereColor[3],b1.body.sphereColor[2],b1.body.sphereColor[1],j1.cylinderColor[3],j1.cylinderColor[2],j1.cylinderColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (766): * Single equations (assignments): 762 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,40,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.006281/0.9044, allocations: 2.471 MB / 0.6334 GB, free: 6.234 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001252/0.9057, allocations: 433.1 kB / 0.6338 GB, free: 5.809 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009838/0.9155, allocations: 3.878 MB / 0.6376 GB, free: 1.922 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.955e-05/0.9155, allocations: 24 kB / 0.6376 GB, free: 1.898 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.15e-05/0.9156, allocations: 8 kB / 0.6376 GB, free: 1.891 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.855e-05/0.9156, allocations: 7.969 kB / 0.6376 GB, free: 1.883 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2589/1.175, allocations: 9.927 MB / 0.6473 GB, free: 178.1 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.865e-05/1.175, allocations: 5.656 kB / 0.6473 GB, free: 178.1 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001485/1.176, allocations: 327.4 kB / 0.6476 GB, free: 178.1 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003539/1.18, allocations: 0.9841 MB / 0.6486 GB, free: 178 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002608/1.18, allocations: 52.34 kB / 0.6486 GB, free: 178 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009371/1.189, allocations: 6.675 MB / 0.6552 GB, free: 174.5 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.616e-06/1.189, allocations: 9.344 kB / 0.6552 GB, free: 174.5 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01088/1.2, allocations: 6.617 MB / 0.6616 GB, free: 171.9 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001221/1.201, allocations: 472.6 kB / 0.6621 GB, free: 171.8 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005031/1.202, allocations: 38.25 kB / 0.6621 GB, free: 171.8 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001591/1.203, allocations: 109.2 kB / 0.6622 GB, free: 171.7 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003832/1.204, allocations: 148.4 kB / 0.6624 GB, free: 171.7 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000145/1.204, allocations: 65.17 kB / 0.6624 GB, free: 171.7 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.004358/1.208, allocations: 2.831 MB / 0.6652 GB, free: 170.7 MB / 0.5294 GB Notification: Performance of sort global known variables: time 9e-08/1.208, allocations: 2.844 kB / 0.6652 GB, free: 170.7 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.00555/1.214, allocations: 1.176 MB / 0.6663 GB, free: 170.6 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 2 (j1.phi,j1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (173): * Single equations (assignments): 169 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,30,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.009614/1.223, allocations: 7.334 MB / 0.6735 GB, free: 167.5 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.007189/1.231, allocations: 5.307 MB / 0.6787 GB, free: 165.5 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 9.057e-06/1.231, allocations: 3.906 kB / 0.6787 GB, free: 165.5 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.00212/1.233, allocations: 1.704 MB / 0.6803 GB, free: 164.8 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003344/1.236, allocations: 0.565 MB / 0.6809 GB, free: 164.6 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06328/1.299, allocations: 51.47 MB / 0.7312 GB, free: 110 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003631/1.303, allocations: 3.871 MB / 0.7349 GB, free: 106.1 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.003722/1.307, allocations: 1.949 MB / 0.7368 GB, free: 104.2 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002292/1.309, allocations: 2.288 MB / 0.7391 GB, free: 101.9 MB / 0.5294 GB Notification: Performance of SimCode: time 1.513e-06/1.309, allocations: 0 / 0.7391 GB, free: 101.9 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1245/1.434, allocations: 84.49 MB / 0.8216 GB, free: 17.86 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 26.95/28.39, allocations: 14.53 kB / 0.8216 GB, free: 17.86 MB / 0.5294 GB " [Timeout remaining time 631] (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0009996 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar_analytic.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar_analytic/Fourbar_analytic.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable j1.phi in file Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic_res.csv. Warning: Get data of variable j1.phi from file Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic_res.csv failed! Error: Could not read variable j1.w in file Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic_res.csv. Warning: Get data of variable j1.w from file Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 31.101603685878217]