Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.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.001215/0.001215, allocations: 83.62 kB / 21.43 MB, free: 3.133 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.005385/0.005385, allocations: 165.8 kB / 24.7 MB, free: 8.887 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.894/0.894, allocations: 158.6 MB / 186.5 MB, free: 3.035 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.944e-06/1.944e-06, allocations: 0 / 298.4 MB, free: 3.516 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.867e-05/2.062e-05, allocations: 2.281 kB / 298.4 MB, free: 3.512 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.1382/0.1382, allocations: 13.88 MB / 312.3 MB, free: 7.871 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.009669/0.1479, allocations: 4.977 MB / 317.3 MB, free: 4.645 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003987/0.1519, allocations: 132.9 kB / 317.4 MB, free: 4.602 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005784/0.1577, allocations: 4.555 MB / 322 MB, free: 2.652 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006241/0.1639, allocations: 2.715 MB / 324.7 MB, free: 0.7266 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002432/0.1663, allocations: 1.288 MB / 326 MB, free: 15.81 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.009405/0.1757, allocations: 8.486 MB / 334.5 MB, free: 10.63 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005759/0.1815, allocations: 5.082 MB / 339.6 MB, free: 5.469 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007421/0.1889, allocations: 3.847 MB / 343.4 MB, free: 1.613 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004893/0.1938, allocations: 3.772 MB / 347.2 MB, free: 13.83 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001183/0.195, allocations: 0.5195 MB / 347.7 MB, free: 13.31 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002581/0.1976, allocations: 1.463 MB / 349.2 MB, free: 11.85 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002145/0.1997, allocations: 3.241 MB / 352.4 MB, free: 8.598 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002856/0.2026, allocations: 2.115 MB / 354.5 MB, free: 6.477 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009021/0.2116, allocations: 10.82 MB / 365.3 MB, free: 11.62 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.69e-06/0.2116, allocations: 0 / 365.3 MB, free: 11.62 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.425e-06/0.2116, allocations: 0 / 365.3 MB, free: 11.62 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0003412/0.212, allocations: 0 / 365.3 MB, free: 11.62 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2058 * Number of variables: 2058 Notification: Performance of Generate backend data structure: time 0.01506/0.227, allocations: 8.187 MB / 373.5 MB, free: 3.359 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.295e-05/0.2271, allocations: 19.98 kB / 373.5 MB, free: 3.34 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001558/0.2286, allocations: 1.078 MB / 374.6 MB, free: 2.25 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02694/0.2556, allocations: 9.062 MB / 383.7 MB, free: 9.172 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009428/0.265, allocations: 5.487 MB / 389.2 MB, free: 3.594 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002388/0.2652, allocations: 341.1 kB / 389.5 MB, free: 3.258 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001469/0.2667, allocations: 468 kB / 390 MB, free: 2.801 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01959/0.2863, allocations: 14.55 MB / 404.5 MB, free: 3.297 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002082/0.2865, allocations: 79.41 kB / 404.6 MB, free: 3.219 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007241/0.2872, allocations: 215.8 kB / 404.8 MB, free: 3.008 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003127/0.2904, allocations: 2.833 MB / 407.6 MB, free: 172 kB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01898/0.3093, allocations: 12.95 MB / 420.6 MB, free: 3.199 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2252/0.5345, allocations: 55.83 MB / 476.4 MB, free: 103 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01266/0.5472, allocations: 7.049 MB / 483.5 MB, free: 102.8 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004654/0.5518, allocations: 4.555 MB / 488 MB, free: 101.3 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01273/0.5645, allocations: 11.94 MB / 500 MB, free: 96.7 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.687e-05/0.5646, allocations: 63.08 kB / 0.4883 GB, free: 96.63 MB / 426.7 MB Notification: Performance of pre-optimization done (n=326): time 6.593e-06/0.5646, allocations: 0 / 0.4883 GB, free: 96.63 MB / 426.7 MB Notification: Performance of matching and sorting (n=572): time 1.123/1.687, allocations: 413.8 MB / 0.8924 GB, free: 129.2 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.611e-05/1.687, allocations: 265.7 kB / 0.8927 GB, free: 128.9 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005843/1.693, allocations: 6.444 MB / 0.899 GB, free: 122.9 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001912/1.695, allocations: 109.7 kB / 0.8991 GB, free: 122.8 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001998/1.697, allocations: 4.136 MB / 0.9031 GB, free: 119.6 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001964/1.699, allocations: 2.064 MB / 0.9051 GB, free: 117.6 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002469/1.702, allocations: 2.057 MB / 0.9071 GB, free: 115.5 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 3.157e-05/1.702, allocations: 313.1 kB / 0.9074 GB, free: 115.2 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008264/1.71, allocations: 10.88 MB / 0.9181 GB, free: 104.3 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009237/1.719, allocations: 15.07 MB / 0.9328 GB, free: 87.3 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01887/1.738, allocations: 27.11 MB / 0.9593 GB, free: 58.38 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.214e-05/1.738, allocations: 40 kB / 0.9593 GB, free: 58.34 MB / 474.7 MB Notification: Performance of matching and sorting (n=1202) (initialization): time 0.3272/2.065, allocations: 140.1 MB / 1.096 GB, free: 94.78 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.711e-05/2.065, allocations: 64.94 kB / 1.096 GB, free: 94.71 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.288e-05/2.065, allocations: 140 kB / 1.096 GB, free: 94.58 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.04745/2.113, allocations: 34.55 MB / 1.13 GB, free: 60.14 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002698/2.116, allocations: 1.475 MB / 1.131 GB, free: 58.79 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.345/2.461, allocations: 200.8 MB / 1.328 GB, free: 35.34 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009397/2.47, allocations: 1.81 MB / 1.329 GB, free: 33.54 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002048/2.472, allocations: 0.5202 MB / 1.33 GB, free: 33.02 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 626 * Number of states: 0 () * Number of discrete variables: 54 (b0.color[3],b0.color[2],b0.color[1],j5.cylinderColor[3],j5.cylinderColor[2],j5.cylinderColor[1],j4.cylinderColor[3],j4.cylinderColor[2],j4.cylinderColor[1],j3.cylinderColor[3],j3.cylinderColor[2],j3.cylinderColor[1],rev1.cylinderColor[3],rev1.cylinderColor[2],rev1.cylinderColor[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.cylinderColor[1],b3.color[3],b3.color[2],b3.color[1],b3.body.sphereColor[3],b3.body.sphereColor[2],b3.body.sphereColor[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 (783): * Single equations (assignments): 776 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(21,163,34.9%), (16,102,51.6%), (2,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(12,76)} Notification: Performance of prepare postOptimizeDAE: time 0.006773/2.479, allocations: 3.099 MB / 1.333 GB, free: 30.14 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001805/2.481, allocations: 0.6163 MB / 1.333 GB, free: 29.72 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3714/2.852, allocations: 136.1 MB / 1.466 GB, free: 70.77 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.276e-05/2.852, allocations: 58.34 kB / 1.466 GB, free: 70.71 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001723/2.852, allocations: 60 kB / 1.467 GB, free: 70.66 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001194/2.852, allocations: 24.67 kB / 1.467 GB, free: 70.63 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4043/3.257, allocations: 202.9 MB / 1.665 GB, free: 53.54 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.903e-05/3.257, allocations: 8.625 kB / 1.665 GB, free: 53.54 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009594/3.258, allocations: 330.4 kB / 1.665 GB, free: 53.21 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.2116/3.469, allocations: 33.25 MB / 1.697 GB, free: 137.9 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001641/3.471, allocations: 101.4 kB / 1.698 GB, free: 137.9 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3151/3.786, allocations: 183.6 MB / 1.877 GB, free: 130.7 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.16e-06/3.786, allocations: 10.66 kB / 1.877 GB, free: 130.7 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3775/4.164, allocations: 151.9 MB / 2.025 GB, free: 128.8 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.006793/4.17, allocations: 3.058 MB / 2.028 GB, free: 128.8 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002389/4.173, allocations: 96.41 kB / 2.028 GB, free: 128.8 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007779/4.18, allocations: 1.575 MB / 2.03 GB, free: 128.8 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003897/4.184, allocations: 0.5178 MB / 2.03 GB, free: 128.8 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001127/4.185, allocations: 149.2 kB / 2.03 GB, free: 128.8 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.006558/4.192, allocations: 4.06 MB / 2.034 GB, free: 128.7 MB / 474.7 MB Notification: Performance of sort global known variables: time 5.51e-07/4.192, allocations: 0 / 2.034 GB, free: 128.7 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01427/4.206, allocations: 4.082 MB / 2.038 GB, free: 128.7 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * 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 (165): * Single equations (assignments): 158 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(20,157,40.5%), (16,99,51.6%), (2,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(12,86)} Notification: Performance of Backend phase and start with SimCode phase: time 0.3637/4.57, allocations: 152.4 MB / 2.187 GB, free: 135.6 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.04563/4.616, allocations: 32.59 MB / 2.219 GB, free: 134.2 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.179e-05/4.616, allocations: 0 / 2.219 GB, free: 134.2 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.02528/4.641, allocations: 19.53 MB / 2.238 GB, free: 128.5 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00713/4.648, allocations: 0.839 MB / 2.239 GB, free: 128.1 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.8382/5.486, allocations: 355.3 MB / 2.586 GB, free: 108.9 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007944/5.494, allocations: 4.621 MB / 2.591 GB, free: 105.7 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.004509/5.499, allocations: 2.097 MB / 2.593 GB, free: 103.8 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005054/5.504, allocations: 3.057 MB / 2.596 GB, free: 103.2 MB / 474.7 MB Notification: Performance of SimCode: time 3.417e-06/5.504, allocations: 2.5 kB / 2.596 GB, free: 103.2 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6422/6.146, allocations: 349 MB / 2.936 GB, free: 92.16 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.07/22.22, allocations: 0 / 2.936 GB, free: 92.16 MB / 474.7 MB " [Timeout remaining time 638] (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0009996 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar1/Fourbar1.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable j1.phi in file Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.csv. Warning: Get data of variable j1.phi from file Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.csv failed! Error: Could not read variable j1.w in file Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.csv. Warning: Get data of variable j1.w from file Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 24.242984755896032]