Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.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.001873/0.001873, allocations: 131.4 kB / 17.8 MB, free: 5.219 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.002155/0.002155, allocations: 211.6 kB / 20.75 MB, free: 2.27 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.485/1.485, allocations: 230.5 MB / 254 MB, free: 15.17 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.Fourbar1,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001862/0.001862, allocations: 63.91 kB / 373 MB, free: 10.11 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1016/0.1034, allocations: 53.37 MB / 426.4 MB, free: 4.637 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.01765/0.1211, allocations: 15.94 MB / 442.3 MB, free: 4.625 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.2123/0.3334, allocations: 5.139 MB / 447.4 MB, free: 7.668 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003261/0.3367, allocations: 136.3 kB / 447.6 MB, free: 7.668 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009094/0.3458, allocations: 4.48 MB / 452.1 MB, free: 7.648 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006999/0.3528, allocations: 2.566 MB / 454.6 MB, free: 7.527 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00289/0.3556, allocations: 1.16 MB / 455.8 MB, free: 7.5 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01164/0.3673, allocations: 8.104 MB / 463.9 MB, free: 6.012 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00682/0.3741, allocations: 4.529 MB / 468.4 MB, free: 4.137 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004689/0.3788, allocations: 2.506 MB / 470.9 MB, free: 2.859 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005475/0.3843, allocations: 3.613 MB / 474.5 MB, free: 0.8398 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001916/0.3862, allocations: 0.5031 MB / 475 MB, free: 0.8398 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004006/0.3902, allocations: 1.531 MB / 476.6 MB, free: 356 kB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004473/0.3947, allocations: 3.048 MB / 479.6 MB, free: 14.55 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007132/0.4018, allocations: 3.421 MB / 483 MB, free: 11.99 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01596/0.4178, allocations: 10.55 MB / 493.6 MB, free: 3.754 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.127e-06/0.4178, allocations: 0 / 493.6 MB, free: 3.754 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.4178, allocations: 0 / 493.6 MB, free: 3.754 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0004019/0.4182, allocations: 0 / 493.6 MB, free: 3.754 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: 2058 * Number of variables: 2058 Notification: Performance of Generate backend data structure: time 0.02215/0.4403, allocations: 8.101 MB / 0.4899 GB, free: 11.69 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.076e-05/0.4404, allocations: 8.031 kB / 0.4899 GB, free: 11.68 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002345/0.4427, allocations: 1.08 MB / 0.491 GB, free: 10.63 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05738/0.5001, allocations: 8.561 MB / 0.4994 GB, free: 2.059 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01314/0.5132, allocations: 5.547 MB / 0.5048 GB, free: 12.5 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003041/0.5135, allocations: 336.5 kB / 0.5051 GB, free: 12.21 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001561/0.5151, allocations: 474.4 kB / 0.5055 GB, free: 11.8 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02912/0.5442, allocations: 14.46 MB / 0.5197 GB, free: 12.54 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002799/0.5445, allocations: 79.41 kB / 0.5197 GB, free: 12.46 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001178/0.5457, allocations: 212.3 kB / 0.5199 GB, free: 12.3 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006089/0.5517, allocations: 2.834 MB / 0.5227 GB, free: 9.48 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02883/0.5806, allocations: 13.01 MB / 0.5354 GB, free: 12.45 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08552/0.6661, allocations: 58.13 MB / 0.5922 GB, free: 1.148 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01913/0.6852, allocations: 7.332 MB / 0.5993 GB, free: 9.672 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00677/0.692, allocations: 4.514 MB / 0.6038 GB, free: 5.148 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02318/0.7152, allocations: 12.7 MB / 0.6162 GB, free: 8.379 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.965e-05/0.7152, allocations: 72.64 kB / 0.6162 GB, free: 8.297 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=326): time 5.991e-06/0.7152, allocations: 0 / 0.6162 GB, free: 8.297 MB / 0.5137 GB Notification: Performance of matching and sorting (n=572): time 2.116/2.831, allocations: 411.4 MB / 1.018 GB, free: 22.89 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.699e-05/2.831, allocations: 265.6 kB / 1.018 GB, free: 22.57 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006897/2.838, allocations: 5.497 MB / 1.024 GB, free: 17.19 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.002036/2.84, allocations: 113.7 kB / 1.024 GB, free: 17.07 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002232/2.842, allocations: 4.155 MB / 1.028 GB, free: 13.36 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.002836/2.845, allocations: 2.097 MB / 1.03 GB, free: 11.29 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004358/2.849, allocations: 2.077 MB / 1.032 GB, free: 9.195 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 5.068e-05/2.849, allocations: 309.1 kB / 1.032 GB, free: 8.891 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.2169/3.066, allocations: 10.87 MB / 1.043 GB, free: 156.4 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01779/3.084, allocations: 14.99 MB / 1.057 GB, free: 146.9 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.03142/3.115, allocations: 27.12 MB / 1.084 GB, free: 131.6 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002174/3.116, allocations: 42.84 kB / 1.084 GB, free: 131.6 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1202) (initialization): time 0.3229/3.439, allocations: 140.2 MB / 1.221 GB, free: 9.762 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001122/3.439, allocations: 67.98 kB / 1.221 GB, free: 9.695 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001629/3.439, allocations: 136 kB / 1.221 GB, free: 9.562 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.2913/3.73, allocations: 34.58 MB / 1.255 GB, free: 154.8 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005544/3.736, allocations: 1.478 MB / 1.256 GB, free: 154.7 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4979/4.234, allocations: 203.2 MB / 1.455 GB, free: 140.9 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01469/4.248, allocations: 1.706 MB / 1.456 GB, free: 140.9 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002782/4.251, allocations: 0.5265 MB / 1.457 GB, free: 140.9 MB / 0.545 GB 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.008413/4.26, allocations: 3.087 MB / 1.46 GB, free: 140.8 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002413/4.262, allocations: 0.6116 MB / 1.46 GB, free: 140.8 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3161/4.578, allocations: 136.2 MB / 1.593 GB, free: 49.16 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.539e-05/4.578, allocations: 61.88 kB / 1.593 GB, free: 49.11 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001543/4.578, allocations: 59.98 kB / 1.594 GB, free: 49.05 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001211/4.578, allocations: 31.84 kB / 1.594 GB, free: 49.02 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.6124/5.191, allocations: 205.6 MB / 1.794 GB, free: 78.05 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.345e-05/5.191, allocations: 4 kB / 1.794 GB, free: 78.05 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001531/5.192, allocations: 336.9 kB / 1.795 GB, free: 77.72 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.07198/5.264, allocations: 33.3 MB / 1.827 GB, free: 44.68 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001988/5.266, allocations: 99.98 kB / 1.827 GB, free: 44.59 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4901/5.756, allocations: 185.9 MB / 2.009 GB, free: 66.54 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.534e-06/5.756, allocations: 11.47 kB / 2.009 GB, free: 66.53 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.5813/6.338, allocations: 152 MB / 2.157 GB, free: 118.7 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002126/6.34, allocations: 0.6638 MB / 2.158 GB, free: 118.4 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002948/6.343, allocations: 100.4 kB / 2.158 GB, free: 118.3 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0108/6.354, allocations: 1.484 MB / 2.159 GB, free: 116.9 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.004902/6.358, allocations: 494.1 kB / 2.16 GB, free: 116.5 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001528/6.36, allocations: 148.6 kB / 2.16 GB, free: 116.4 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.006381/6.366, allocations: 3.513 MB / 2.164 GB, free: 113.9 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.7e-07/6.366, allocations: 1.688 kB / 2.164 GB, free: 113.9 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.01613/6.383, allocations: 3.784 MB / 2.167 GB, free: 110.4 MB / 0.5606 GB 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.5789/6.961, allocations: 152.5 MB / 2.316 GB, free: 149.7 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.05883/7.02, allocations: 32.62 MB / 2.348 GB, free: 135.7 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.365e-05/7.02, allocations: 0 / 2.348 GB, free: 135.7 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.03825/7.058, allocations: 19.56 MB / 2.367 GB, free: 116.2 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01124/7.07, allocations: 0.8399 MB / 2.368 GB, free: 115.4 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 1.263/8.333, allocations: 352.8 MB / 2.712 GB, free: 146.7 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007699/8.34, allocations: 5.106 MB / 2.717 GB, free: 145.6 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.004547/8.345, allocations: 2.065 MB / 2.719 GB, free: 144.8 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003847/8.349, allocations: 3.02 MB / 2.722 GB, free: 144.6 MB / 0.5606 GB Notification: Performance of SimCode: time 1.462e-06/8.349, allocations: 0 / 2.722 GB, free: 144.6 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7365/9.085, allocations: 336.1 MB / 3.051 GB, free: 38.93 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 31.14/40.23, allocations: 10.73 kB / 3.051 GB, free: 38.92 MB / 0.5606 GB " [Timeout remaining time 620] (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar1/Fourbar1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.csv. Warning: Get data of variable j1.phi from file Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.csv failed! Error: Could not read variable j1.w in file Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.csv. Warning: Get data of variable j1.w from file Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 43.17041501204949]