Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001639/0.001639, allocations: 112.5 kB / 20.43 MB, free: 1.453 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002045/0.002045, allocations: 212.1 kB / 23.74 MB, free: 4.66 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.476/1.476, allocations: 230.5 MB / 257.4 MB, free: 8.016 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar2",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001989/0.001989, allocations: 63.91 kB / 377.8 MB, free: 3.02 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2587/0.2607, allocations: 53.42 MB / 431.2 MB, free: 6.695 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.01895/0.2796, allocations: 15.06 MB / 446.3 MB, free: 7.562 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01265/0.2923, allocations: 4.866 MB / 451.1 MB, free: 2.684 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003387/0.2957, allocations: 107.5 kB / 451.2 MB, free: 2.578 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007486/0.3032, allocations: 3.219 MB / 454.4 MB, free: 15.35 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008215/0.3114, allocations: 2.607 MB / 457 MB, free: 12.73 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002989/0.3144, allocations: 0.9905 MB / 458 MB, free: 11.74 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01185/0.3262, allocations: 7.057 MB / 465.1 MB, free: 4.672 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006807/0.333, allocations: 3.574 MB / 468.7 MB, free: 1.031 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005179/0.3382, allocations: 2.247 MB / 470.9 MB, free: 14.77 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00665/0.3449, allocations: 3.52 MB / 474.4 MB, free: 11.24 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002127/0.347, allocations: 488 kB / 474.9 MB, free: 10.77 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004351/0.3513, allocations: 1.529 MB / 476.4 MB, free: 9.238 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004487/0.3558, allocations: 2.929 MB / 479.4 MB, free: 6.301 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005937/0.3618, allocations: 3.285 MB / 482.7 MB, free: 2.996 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01493/0.3767, allocations: 10.54 MB / 493.2 MB, free: 8.41 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.165e-06/0.3767, allocations: 0 / 493.2 MB, free: 8.41 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.314e-06/0.3767, allocations: 0 / 493.2 MB, free: 8.41 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0003388/0.377, allocations: 0 / 493.2 MB, free: 8.41 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: 2242 * Number of variables: 2242 Notification: Performance of Generate backend data structure: time 0.02051/0.3975, allocations: 7.552 MB / 0.489 GB, free: 0.7812 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.27e-05/0.3976, allocations: 8.031 kB / 0.489 GB, free: 0.7734 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003238/0.4008, allocations: 1.144 MB / 0.4901 GB, free: 15.61 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04297/0.4438, allocations: 7.544 MB / 0.4975 GB, free: 8.055 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01219/0.456, allocations: 4.579 MB / 0.502 GB, free: 3.422 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003667/0.4564, allocations: 324.2 kB / 0.5023 GB, free: 3.102 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002099/0.4585, allocations: 435.7 kB / 0.5027 GB, free: 2.676 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03312/0.4916, allocations: 15.61 MB / 0.5179 GB, free: 2.137 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002447/0.4918, allocations: 55.58 kB / 0.518 GB, free: 2.082 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001581/0.4934, allocations: 203.8 kB / 0.5182 GB, free: 1.883 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005734/0.4991, allocations: 3.223 MB / 0.5213 GB, free: 14.66 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02891/0.5281, allocations: 13.91 MB / 0.5349 GB, free: 0.7227 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2778/0.8059, allocations: 56.99 MB / 0.5906 GB, free: 48.97 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01157/0.8174, allocations: 5.284 MB / 0.5957 GB, free: 43.66 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003973/0.8214, allocations: 3.23 MB / 0.5989 GB, free: 40.43 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02085/0.8423, allocations: 12.31 MB / 0.6109 GB, free: 28.35 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.425e-05/0.8423, allocations: 60.56 kB / 0.611 GB, free: 28.28 MB / 446.1 MB Notification: Performance of pre-optimization done (n=286): time 7.003e-06/0.8423, allocations: 0 / 0.611 GB, free: 28.28 MB / 446.1 MB Notification: Performance of matching and sorting (n=336): time 0.1372/0.9795, allocations: 41.77 MB / 0.6518 GB, free: 2.816 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001556/0.9796, allocations: 214 kB / 0.652 GB, free: 2.562 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009802/0.9894, allocations: 5.494 MB / 0.6573 GB, free: 13.2 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007372/0.9902, allocations: 73.64 kB / 0.6574 GB, free: 13.12 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.004087/0.9942, allocations: 4.595 MB / 0.6619 GB, free: 8.578 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001969/0.9962, allocations: 1.302 MB / 0.6632 GB, free: 7.266 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003833/1, allocations: 1.79 MB / 0.6649 GB, free: 5.461 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001266/1, allocations: 309.1 kB / 0.6652 GB, free: 5.156 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007836/1.008, allocations: 4.616 MB / 0.6697 GB, free: 0.5312 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01264/1.021, allocations: 9.587 MB / 0.6791 GB, free: 4.492 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02152/1.042, allocations: 15.26 MB / 0.694 GB, free: 2.762 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001426/1.042, allocations: 51.94 kB / 0.694 GB, free: 2.711 MB / 0.4981 GB Notification: Performance of matching and sorting (n=1148) (initialization): time 0.04832/1.091, allocations: 18.96 MB / 0.7125 GB, free: 15.7 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001343/1.091, allocations: 80 kB / 0.7126 GB, free: 15.62 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002379/1.091, allocations: 176 kB / 0.7128 GB, free: 15.45 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02301/1.114, allocations: 5.78 MB / 0.7184 GB, free: 9.664 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007788/1.122, allocations: 2.043 MB / 0.7204 GB, free: 7.617 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.303/1.425, allocations: 25.44 MB / 0.7453 GB, free: 183.4 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008083/1.433, allocations: 0.5441 MB / 0.7458 GB, free: 183.4 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002147/1.435, allocations: 0.5022 MB / 0.7463 GB, free: 183.4 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 791 * Number of states: 0 () * Number of discrete variables: 45 (fixedFrame.color_x[3],fixedFrame.color_x[2],fixedFrame.color_x[1],b3.color[3],b3.color[2],b3.color[1],universalSpherical.cylinderColor[3],universalSpherical.cylinderColor[2],universalSpherical.cylinderColor[1],universalSpherical.sphereColor[3],universalSpherical.sphereColor[2],universalSpherical.sphereColor[1],universalSpherical.rodColor[3],universalSpherical.rodColor[2],universalSpherical.rodColor[1],b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],b1.color[3],b1.color[2],b1.color[1],b1.body.sphereColor[3],b1.body.sphereColor[2],b1.body.sphereColor[1],j2.boxColor[3],j2.boxColor[2],j2.boxColor[1],j1.cylinderColor[3],j1.cylinderColor[2],j1.cylinderColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[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]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1057): * Single equations (assignments): 1049 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,42,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0078/1.443, allocations: 3.097 MB / 0.7493 GB, free: 183.1 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001662/1.444, allocations: 0.5186 MB / 0.7498 GB, free: 183.1 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03038/1.475, allocations: 12.57 MB / 0.7621 GB, free: 179.1 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.525e-05/1.475, allocations: 60.88 kB / 0.7622 GB, free: 179.1 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.762e-05/1.475, allocations: 7.875 kB / 0.7622 GB, free: 179.1 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.186e-05/1.475, allocations: 15.47 kB / 0.7622 GB, free: 179.1 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05139/1.526, allocations: 24.13 MB / 0.7858 GB, free: 165.9 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.675e-05/1.526, allocations: 4 kB / 0.7858 GB, free: 165.9 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003115/1.53, allocations: 0.579 MB / 0.7863 GB, free: 165.3 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01757/1.547, allocations: 4.804 MB / 0.791 GB, free: 160.5 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009285/1.548, allocations: 59.98 kB / 0.7911 GB, free: 160.5 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02416/1.572, allocations: 20.69 MB / 0.8113 GB, free: 139.7 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.016e-05/1.572, allocations: 15.81 kB / 0.8113 GB, free: 139.7 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03161/1.604, allocations: 16.99 MB / 0.8279 GB, free: 122.9 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00154/1.605, allocations: 486.1 kB / 0.8283 GB, free: 122.6 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001418/1.607, allocations: 59.2 kB / 0.8284 GB, free: 122.5 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003682/1.61, allocations: 263.5 kB / 0.8287 GB, free: 122.3 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001052/1.612, allocations: 201.4 kB / 0.8288 GB, free: 122.1 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004592/1.612, allocations: 80 kB / 0.8289 GB, free: 122 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.005712/1.618, allocations: 3.42 MB / 0.8323 GB, free: 118.6 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.51e-07/1.618, allocations: 3.906 kB / 0.8323 GB, free: 118.6 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.007837/1.626, allocations: 1.683 MB / 0.8339 GB, free: 116.9 MB / 0.545 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 (251): * Single equations (assignments): 243 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,38,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.03285/1.658, allocations: 17.66 MB / 0.8512 GB, free: 99.12 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01564/1.674, allocations: 10.17 MB / 0.8611 GB, free: 89 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.28e-05/1.674, allocations: 8 kB / 0.8611 GB, free: 88.99 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.006047/1.68, allocations: 3.712 MB / 0.8647 GB, free: 85.28 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006718/1.687, allocations: 0.6361 MB / 0.8653 GB, free: 84.66 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3834/2.07, allocations: 86.19 MB / 0.9495 GB, free: 199.7 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01047/2.081, allocations: 4.616 MB / 0.954 GB, free: 198.9 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.008198/2.089, allocations: 2.978 MB / 0.9569 GB, free: 198.8 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005723/2.095, allocations: 2.92 MB / 0.9598 GB, free: 198.7 MB / 0.5606 GB Notification: Performance of SimCode: time 1.493e-06/2.095, allocations: 0 / 0.9598 GB, free: 198.7 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1931/2.288, allocations: 130.1 MB / 1.087 GB, free: 81.19 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 43.19/45.48, allocations: 16.2 kB / 1.087 GB, free: 81.18 MB / 0.5606 GB " [Timeout remaining time 614] (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0009996 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar2.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar2/Fourbar2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable j1.phi in file Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2_res.csv. Warning: Get data of variable j1.phi from file Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2_res.csv failed! Error: Could not read variable j1.w in file Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2_res.csv. Warning: Get data of variable j1.w from file Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 48.24226159799946]