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.0018/0.0018, allocations: 112.2 kB / 20.43 MB, free: 1.449 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.002147/0.002147, allocations: 188 kB / 23.72 MB, free: 4.684 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.447/1.447, allocations: 225.6 MB / 252.5 MB, free: 13.02 MB / 206.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.001608/0.001608, allocations: 48.02 kB / 370.4 MB, free: 9.848 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2708/0.2725, allocations: 52.19 MB / 422.6 MB, free: 14.74 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic): time 0.01771/0.2902, allocations: 13.58 MB / 436.2 MB, free: 1.098 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01216/0.3023, allocations: 4.905 MB / 441.1 MB, free: 12.18 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003212/0.3055, allocations: 103.5 kB / 441.2 MB, free: 12.08 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009128/0.3147, allocations: 4.256 MB / 445.5 MB, free: 7.809 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007011/0.3217, allocations: 2.214 MB / 447.7 MB, free: 5.59 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003189/0.3249, allocations: 1.103 MB / 448.8 MB, free: 4.484 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.009639/0.3345, allocations: 5.993 MB / 454.8 MB, free: 14.48 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006398/0.3409, allocations: 4.081 MB / 458.9 MB, free: 10.33 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005196/0.3461, allocations: 2.185 MB / 461 MB, free: 8.141 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005576/0.3517, allocations: 3.092 MB / 464.1 MB, free: 5.039 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001736/0.3534, allocations: 0.4922 MB / 464.6 MB, free: 4.547 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003954/0.3574, allocations: 1.689 MB / 466.3 MB, free: 2.855 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003912/0.3613, allocations: 2.673 MB / 469 MB, free: 180 kB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005451/0.3667, allocations: 2.965 MB / 472 MB, free: 13.19 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01435/0.3811, allocations: 9.698 MB / 481.7 MB, free: 3.461 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.218e-05/0.3811, allocations: 8 kB / 481.7 MB, free: 3.453 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.3811, allocations: 0 / 481.7 MB, free: 3.453 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003515/0.3814, allocations: 4 kB / 481.7 MB, free: 3.449 MB / 382.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.02095/0.4024, allocations: 6.291 MB / 488 MB, free: 13.09 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.248e-05/0.4024, allocations: 8.031 kB / 488 MB, free: 13.08 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003331/0.4058, allocations: 0.9325 MB / 488.9 MB, free: 12.14 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03811/0.4439, allocations: 6.055 MB / 495 MB, free: 6.07 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01202/0.4559, allocations: 4.398 MB / 499.3 MB, free: 1.605 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004013/0.4563, allocations: 308.1 kB / 499.7 MB, free: 1.301 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00218/0.4585, allocations: 443.7 kB / 0.4884 GB, free: 0.8672 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03028/0.4888, allocations: 12.31 MB / 0.5004 GB, free: 3.82 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003359/0.4891, allocations: 55.59 kB / 0.5004 GB, free: 3.766 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001862/0.491, allocations: 191.9 kB / 0.5006 GB, free: 3.578 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003714/0.4947, allocations: 2.035 MB / 0.5026 GB, free: 1.539 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02531/0.52, allocations: 10.36 MB / 0.5127 GB, free: 7.172 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2899/0.8099, allocations: 43.83 MB / 0.5555 GB, free: 77.62 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01152/0.8214, allocations: 4.201 MB / 0.5596 GB, free: 77.09 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002357/0.8238, allocations: 1.84 MB / 0.5614 GB, free: 76.33 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01137/0.8351, allocations: 6.07 MB / 0.5674 GB, free: 73.45 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.714e-05/0.8352, allocations: 59.67 kB / 0.5674 GB, free: 73.39 MB / 446.1 MB Notification: Performance of pre-optimization done (n=179): time 5.72e-06/0.8352, allocations: 0 / 0.5674 GB, free: 73.39 MB / 446.1 MB Notification: Performance of matching and sorting (n=223): time 0.0598/0.895, allocations: 19.27 MB / 0.5862 GB, free: 57.55 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.354e-05/0.8951, allocations: 213.8 kB / 0.5864 GB, free: 57.3 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005064/0.9001, allocations: 4.499 MB / 0.5908 GB, free: 52.87 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003782/0.9005, allocations: 61.69 kB / 0.5909 GB, free: 52.8 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001547/0.902, allocations: 3.692 MB / 0.5945 GB, free: 49.39 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007177/0.9028, allocations: 0.8825 MB / 0.5953 GB, free: 48.52 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001283/0.904, allocations: 1.271 MB / 0.5966 GB, free: 47.24 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.367e-05/0.9041, allocations: 305.1 kB / 0.5969 GB, free: 46.94 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00261/0.9067, allocations: 2.23 MB / 0.5991 GB, free: 44.71 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003991/0.9107, allocations: 5.978 MB / 0.6049 GB, free: 36.92 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007704/0.9184, allocations: 8.915 MB / 0.6136 GB, free: 26.17 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.266e-05/0.9185, allocations: 42.62 kB / 0.6136 GB, free: 26.13 MB / 446.1 MB Notification: Performance of matching and sorting (n=830) (initialization): time 0.01581/0.9343, allocations: 9.04 MB / 0.6225 GB, free: 17.08 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001426/0.9344, allocations: 60 kB / 0.6225 GB, free: 17.02 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001873/0.9346, allocations: 136.9 kB / 0.6227 GB, free: 16.89 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00359/0.9382, allocations: 1.202 MB / 0.6238 GB, free: 15.68 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004613/0.9428, allocations: 1.415 MB / 0.6252 GB, free: 14.27 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01103/0.9539, allocations: 7.908 MB / 0.6329 GB, free: 6.25 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004938/0.9588, allocations: 335.6 kB / 0.6333 GB, free: 5.922 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001129/0.9599, allocations: 384 kB / 0.6336 GB, free: 5.547 MB / 446.1 MB 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.004356/0.9643, allocations: 2.486 MB / 0.636 GB, free: 3.051 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001019/0.9653, allocations: 429.1 kB / 0.6365 GB, free: 2.629 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008261/0.9736, allocations: 3.875 MB / 0.6402 GB, free: 14.74 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.301e-05/0.9736, allocations: 28 kB / 0.6403 GB, free: 14.71 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.63e-05/0.9736, allocations: 8 kB / 0.6403 GB, free: 14.7 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.296e-05/0.9737, allocations: 7.969 kB / 0.6403 GB, free: 14.7 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02331/0.997, allocations: 9.91 MB / 0.65 GB, free: 4.691 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.906e-05/0.997, allocations: 8 kB / 0.65 GB, free: 4.684 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001526/0.9986, allocations: 323.5 kB / 0.6503 GB, free: 4.367 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003462/1.002, allocations: 0.9953 MB / 0.6513 GB, free: 3.371 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002628/1.002, allocations: 43.98 kB / 0.6513 GB, free: 3.328 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01061/1.013, allocations: 6.581 MB / 0.6577 GB, free: 12.63 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.082e-06/1.013, allocations: 4 kB / 0.6577 GB, free: 12.63 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01215/1.025, allocations: 6.604 MB / 0.6642 GB, free: 5.949 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001559/1.027, allocations: 404.9 kB / 0.6646 GB, free: 5.551 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006334/1.027, allocations: 43.94 kB / 0.6646 GB, free: 5.508 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00164/1.029, allocations: 107.9 kB / 0.6647 GB, free: 5.402 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003846/1.029, allocations: 149 kB / 0.6648 GB, free: 5.258 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000162/1.029, allocations: 67.98 kB / 0.6649 GB, free: 5.191 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.005156/1.035, allocations: 2.824 MB / 0.6677 GB, free: 2.367 MB / 478.1 MB Notification: Performance of sort global known variables: time 6e-08/1.035, allocations: 0 / 0.6677 GB, free: 2.367 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.00611/1.041, allocations: 1.176 MB / 0.6688 GB, free: 1.191 MB / 478.1 MB 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.01273/1.053, allocations: 7.326 MB / 0.676 GB, free: 9.781 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.009751/1.063, allocations: 5.31 MB / 0.6812 GB, free: 4.48 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.022e-05/1.063, allocations: 0 / 0.6812 GB, free: 4.48 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003031/1.066, allocations: 1.7 MB / 0.6828 GB, free: 2.77 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003848/1.07, allocations: 0.5651 MB / 0.6834 GB, free: 2.203 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0931/1.163, allocations: 51.57 MB / 0.7337 GB, free: 8.668 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006146/1.169, allocations: 3.871 MB / 0.7375 GB, free: 4.762 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.004895/1.174, allocations: 1.942 MB / 0.7394 GB, free: 2.812 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004886/1.179, allocations: 2.288 MB / 0.7416 GB, free: 0.5234 MB / 0.545 GB Notification: Performance of SimCode: time 1.402e-06/1.179, allocations: 0 / 0.7416 GB, free: 0.5234 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3778/1.557, allocations: 89.72 MB / 0.8293 GB, free: 129.4 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 29.39/30.95, allocations: 3.938 kB / 0.8293 GB, free: 129.4 MB / 0.545 GB " [Timeout remaining time 629] (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: 33.67740970699742]