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.001593/0.001593, allocations: 111.1 kB / 20.44 MB, free: 1.062 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.001913/0.001913, allocations: 213 kB / 23.73 MB, free: 4.164 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.471/1.471, allocations: 230.5 MB / 257.4 MB, free: 7.789 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.002112/0.002112, allocations: 71.89 kB / 377.7 MB, free: 2.816 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2391/0.2412, allocations: 53.41 MB / 431.1 MB, free: 6.465 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.01712/0.2583, allocations: 13.01 MB / 444.2 MB, free: 9.391 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00984/0.2682, allocations: 4.614 MB / 448.8 MB, free: 4.77 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001794/0.27, allocations: 111.5 kB / 448.9 MB, free: 4.66 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005901/0.2759, allocations: 3.099 MB / 452 MB, free: 1.551 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006074/0.2819, allocations: 2.607 MB / 454.6 MB, free: 14.93 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002056/0.284, allocations: 0.9866 MB / 455.6 MB, free: 13.95 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.00951/0.2935, allocations: 7.052 MB / 462.6 MB, free: 6.879 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004732/0.2982, allocations: 3.567 MB / 466.2 MB, free: 3.242 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003745/0.302, allocations: 2.258 MB / 468.4 MB, free: 0.9766 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004827/0.3068, allocations: 3.353 MB / 471.8 MB, free: 13.61 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001453/0.3083, allocations: 484 kB / 472.3 MB, free: 13.14 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003918/0.3122, allocations: 1.385 MB / 473.7 MB, free: 11.75 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004265/0.3164, allocations: 2.929 MB / 476.6 MB, free: 8.816 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004182/0.3206, allocations: 2.438 MB / 479 MB, free: 6.363 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0128/0.3334, allocations: 10.59 MB / 489.6 MB, free: 11.72 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.615e-06/0.3334, allocations: 4 kB / 489.6 MB, free: 11.72 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.224e-06/0.3334, allocations: 0 / 489.6 MB, free: 11.72 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0002681/0.3337, allocations: 0 / 489.6 MB, free: 11.72 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.01702/0.3507, allocations: 7.544 MB / 497.2 MB, free: 4.098 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.4e-05/0.3508, allocations: 11.98 kB / 497.2 MB, free: 4.086 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002652/0.3534, allocations: 1.137 MB / 498.3 MB, free: 2.934 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04762/0.401, allocations: 7.551 MB / 0.494 GB, free: 11.37 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01165/0.4127, allocations: 4.599 MB / 0.4985 GB, free: 6.715 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003435/0.413, allocations: 320.2 kB / 0.4988 GB, free: 6.398 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001841/0.4149, allocations: 435.7 kB / 0.4992 GB, free: 5.973 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02953/0.4444, allocations: 15.69 MB / 0.5146 GB, free: 5.332 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002044/0.4446, allocations: 55.56 kB / 0.5146 GB, free: 5.277 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001102/0.4457, allocations: 207.8 kB / 0.5148 GB, free: 5.074 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005605/0.4513, allocations: 3.216 MB / 0.5179 GB, free: 1.855 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02784/0.4792, allocations: 13.88 MB / 0.5315 GB, free: 3.953 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2708/0.75, allocations: 54.32 MB / 0.5845 GB, free: 54.31 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01108/0.7611, allocations: 5.276 MB / 0.5897 GB, free: 49.02 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003511/0.7646, allocations: 3.225 MB / 0.5928 GB, free: 45.79 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01707/0.7817, allocations: 11.68 MB / 0.6043 GB, free: 34.35 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.829e-05/0.7817, allocations: 60.56 kB / 0.6043 GB, free: 34.28 MB / 446.1 MB Notification: Performance of pre-optimization done (n=286): time 6.652e-06/0.7817, allocations: 0 / 0.6043 GB, free: 34.28 MB / 446.1 MB Notification: Performance of matching and sorting (n=336): time 0.1339/0.9156, allocations: 41.85 MB / 0.6452 GB, free: 8.809 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001597/0.9157, allocations: 218 kB / 0.6454 GB, free: 8.551 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008499/0.9242, allocations: 5.792 MB / 0.651 GB, free: 2.988 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007363/0.925, allocations: 73.7 kB / 0.6511 GB, free: 2.91 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003717/0.9287, allocations: 4.598 MB / 0.6556 GB, free: 14.39 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001744/0.9304, allocations: 1.294 MB / 0.6569 GB, free: 13.09 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002848/0.9333, allocations: 1.786 MB / 0.6586 GB, free: 11.29 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001394/0.9334, allocations: 305.1 kB / 0.6589 GB, free: 10.99 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007597/0.941, allocations: 4.62 MB / 0.6634 GB, free: 6.359 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01211/0.9531, allocations: 9.637 MB / 0.6728 GB, free: 10.26 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02137/0.9745, allocations: 15.26 MB / 0.6877 GB, free: 8.527 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002066/0.9747, allocations: 48 kB / 0.6878 GB, free: 8.48 MB / 0.4981 GB Notification: Performance of matching and sorting (n=1148) (initialization): time 0.04885/1.024, allocations: 18.96 MB / 0.7063 GB, free: 5.465 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002279/1.024, allocations: 80 kB / 0.7064 GB, free: 5.387 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00031/1.024, allocations: 172 kB / 0.7065 GB, free: 5.219 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02445/1.049, allocations: 5.766 MB / 0.7122 GB, free: 15.44 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007701/1.056, allocations: 2.051 MB / 0.7142 GB, free: 13.38 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03994/1.096, allocations: 25.23 MB / 0.7388 GB, free: 3.91 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007455/1.104, allocations: 0.5423 MB / 0.7393 GB, free: 3.367 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001695/1.105, allocations: 0.5023 MB / 0.7398 GB, free: 2.867 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.2302/1.336, allocations: 3.1 MB / 0.7429 GB, free: 188.9 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001718/1.337, allocations: 0.5184 MB / 0.7434 GB, free: 188.9 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03277/1.37, allocations: 12.57 MB / 0.7556 GB, free: 186.6 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.638e-05/1.37, allocations: 54.97 kB / 0.7557 GB, free: 186.6 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.366e-05/1.37, allocations: 7.594 kB / 0.7557 GB, free: 186.6 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.669e-05/1.37, allocations: 16.31 kB / 0.7557 GB, free: 186.6 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04702/1.417, allocations: 23 MB / 0.7782 GB, free: 173.5 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.765e-05/1.417, allocations: 4 kB / 0.7782 GB, free: 173.5 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003125/1.42, allocations: 0.5733 MB / 0.7787 GB, free: 172.9 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01847/1.439, allocations: 4.797 MB / 0.7834 GB, free: 168.1 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009119/1.44, allocations: 59.94 kB / 0.7835 GB, free: 168.1 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02159/1.461, allocations: 20.52 MB / 0.8035 GB, free: 147.4 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.092e-06/1.461, allocations: 11.94 kB / 0.8035 GB, free: 147.4 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0313/1.493, allocations: 16.98 MB / 0.8201 GB, free: 130.6 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001267/1.494, allocations: 485.5 kB / 0.8206 GB, free: 130.3 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001267/1.495, allocations: 55.98 kB / 0.8206 GB, free: 130.3 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003391/1.499, allocations: 259.5 kB / 0.8209 GB, free: 130 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000799/1.499, allocations: 204.6 kB / 0.8211 GB, free: 129.8 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002935/1.5, allocations: 87.81 kB / 0.8212 GB, free: 129.7 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.004551/1.504, allocations: 3.42 MB / 0.8245 GB, free: 126.3 MB / 0.545 GB Notification: Performance of sort global known variables: time 1e-07/1.504, allocations: 0 / 0.8245 GB, free: 126.3 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.007284/1.512, allocations: 1.683 MB / 0.8261 GB, free: 124.7 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.032/1.544, allocations: 17.65 MB / 0.8434 GB, free: 106.9 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01297/1.557, allocations: 10.18 MB / 0.8533 GB, free: 96.74 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.086e-05/1.557, allocations: 3.938 kB / 0.8533 GB, free: 96.73 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.004822/1.561, allocations: 3.707 MB / 0.857 GB, free: 93.02 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004028/1.565, allocations: 0.6449 MB / 0.8576 GB, free: 92.4 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1346/1.7, allocations: 86.19 MB / 0.9418 GB, free: 14.43 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009175/1.709, allocations: 4.123 MB / 0.9458 GB, free: 10.27 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.2323/1.941, allocations: 2.971 MB / 0.9487 GB, free: 200.4 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006357/1.948, allocations: 2.916 MB / 0.9515 GB, free: 200.4 MB / 0.5606 GB Notification: Performance of SimCode: time 1.112e-06/1.948, allocations: 0 / 0.9515 GB, free: 200.4 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1692/2.117, allocations: 127.5 MB / 1.076 GB, free: 92.27 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.88/22, allocations: 4.062 kB / 1.076 GB, free: 92.27 MB / 0.5606 GB " [Timeout remaining time 638] (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: 24.66204556217417]