Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.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.001275/0.001275, allocations: 108.8 kB / 21.22 MB, free: 0.75 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.001301/0.001301, allocations: 187.8 kB / 24.5 MB, free: 4.02 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.316/1.316, allocations: 225.7 MB / 253.3 MB, free: 13.05 MB / 206.1 MB " [Timeout remaining time 179] 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.Fourbar1,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001434/0.001434, allocations: 47.92 kB / 371.2 MB, free: 9.863 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2193/0.2207, allocations: 52.19 MB / 423.4 MB, free: 14.62 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.01821/0.2389, allocations: 16 MB / 439.4 MB, free: 14.55 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01041/0.2493, allocations: 5.156 MB / 444.6 MB, free: 9.379 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002074/0.2514, allocations: 135.2 kB / 444.7 MB, free: 9.246 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007879/0.2593, allocations: 4.516 MB / 449.2 MB, free: 4.715 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005955/0.2652, allocations: 2.614 MB / 451.8 MB, free: 2.09 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002233/0.2675, allocations: 1.166 MB / 453 MB, free: 0.9219 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01091/0.2784, allocations: 7.987 MB / 461 MB, free: 8.918 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005486/0.2839, allocations: 4.294 MB / 465.3 MB, free: 4.547 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00363/0.2875, allocations: 2.508 MB / 467.8 MB, free: 2.031 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00476/0.2923, allocations: 3.626 MB / 471.4 MB, free: 14.39 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001006/0.2933, allocations: 0.5039 MB / 471.9 MB, free: 13.89 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002703/0.296, allocations: 1.545 MB / 473.5 MB, free: 12.34 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003159/0.2991, allocations: 3.07 MB / 476.5 MB, free: 9.266 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004/0.3031, allocations: 3.43 MB / 480 MB, free: 5.816 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01293/0.3161, allocations: 10.61 MB / 490.6 MB, free: 11.16 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.741e-06/0.3161, allocations: 0 / 490.6 MB, free: 11.16 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.3161, allocations: 0 / 490.6 MB, free: 11.16 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0002381/0.3163, allocations: 0 / 490.6 MB, free: 11.16 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: 2058 * Number of variables: 2058 Notification: Performance of Generate backend data structure: time 0.01841/0.3347, allocations: 7.999 MB / 498.6 MB, free: 3.086 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.225e-05/0.3348, allocations: 8.031 kB / 498.6 MB, free: 3.078 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0001896/0.3349, allocations: 175.6 kB / 498.8 MB, free: 2.902 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001702/0.3366, allocations: 1.082 MB / 499.8 MB, free: 1.809 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05615/0.3928, allocations: 8.441 MB / 0.4964 GB, free: 9.352 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01264/0.4054, allocations: 5.779 MB / 0.502 GB, free: 3.488 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003132/0.4058, allocations: 344.7 kB / 0.5023 GB, free: 3.148 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001351/0.4071, allocations: 471.7 kB / 0.5028 GB, free: 2.688 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02403/0.4311, allocations: 14.48 MB / 0.5169 GB, free: 3.277 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001834/0.4313, allocations: 71.42 kB / 0.517 GB, free: 3.207 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005783/0.4319, allocations: 215.8 kB / 0.5172 GB, free: 2.996 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005377/0.4373, allocations: 2.844 MB / 0.52 GB, free: 148 kB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02471/0.462, allocations: 13.02 MB / 0.5327 GB, free: 3.094 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2418/0.7038, allocations: 58.04 MB / 0.5894 GB, free: 57.35 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01458/0.7184, allocations: 6.898 MB / 0.5961 GB, free: 50.41 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0041/0.7225, allocations: 4.547 MB / 0.6006 GB, free: 45.86 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01429/0.7368, allocations: 12.3 MB / 0.6126 GB, free: 33.76 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.574e-05/0.7368, allocations: 76.62 kB / 0.6126 GB, free: 33.68 MB / 446.1 MB Notification: Performance of pre-optimization done (n=326): time 5.149e-06/0.7368, allocations: 0 / 0.6126 GB, free: 33.68 MB / 446.1 MB Notification: Performance of matching and sorting (n=572): time 1.923/2.66, allocations: 411 MB / 1.014 GB, free: 125.3 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.283e-05/2.66, allocations: 269.3 kB / 1.014 GB, free: 125 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005536/2.666, allocations: 5.508 MB / 1.02 GB, free: 119.8 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.001513/2.667, allocations: 116.9 kB / 1.02 GB, free: 119.6 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.001835/2.669, allocations: 4.16 MB / 1.024 GB, free: 116.7 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001956/2.671, allocations: 2.1 MB / 1.026 GB, free: 114.6 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003595/2.675, allocations: 2.077 MB / 1.028 GB, free: 112.5 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 3.4e-05/2.675, allocations: 301.1 kB / 1.028 GB, free: 112.2 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01057/2.685, allocations: 10.88 MB / 1.039 GB, free: 101.3 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01229/2.697, allocations: 14.98 MB / 1.053 GB, free: 84.5 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02552/2.723, allocations: 27.13 MB / 1.08 GB, free: 55.52 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.106e-05/2.723, allocations: 44 kB / 1.08 GB, free: 55.48 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1202) (initialization): time 0.4812/3.204, allocations: 140.1 MB / 1.217 GB, free: 109.8 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 7.317e-05/3.204, allocations: 64 kB / 1.217 GB, free: 109.7 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001035/3.204, allocations: 136 kB / 1.217 GB, free: 109.6 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.07332/3.278, allocations: 34.56 MB / 1.251 GB, free: 75.1 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004348/3.282, allocations: 1.478 MB / 1.252 GB, free: 73.75 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.421/3.703, allocations: 202.8 MB / 1.45 GB, free: 88.45 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01232/3.715, allocations: 1.708 MB / 1.452 GB, free: 86.76 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002188/3.718, allocations: 0.5248 MB / 1.452 GB, free: 86.23 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.005989/3.724, allocations: 3.083 MB / 1.455 GB, free: 83.36 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001773/3.725, allocations: 0.6193 MB / 1.456 GB, free: 83.01 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.5044/4.23, allocations: 136.1 MB / 1.589 GB, free: 146.7 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.473e-05/4.23, allocations: 60 kB / 1.589 GB, free: 146.6 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001159/4.23, allocations: 56 kB / 1.589 GB, free: 146.6 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.77e-05/4.23, allocations: 31.89 kB / 1.589 GB, free: 146.5 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5564/4.786, allocations: 205.5 MB / 1.79 GB, free: 146 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.49e-05/4.787, allocations: 5.594 kB / 1.79 GB, free: 146 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001558/4.788, allocations: 337.3 kB / 1.79 GB, free: 146 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.07016/4.858, allocations: 33.28 MB / 1.823 GB, free: 117.6 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001778/4.86, allocations: 105 kB / 1.823 GB, free: 117.5 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4141/5.274, allocations: 185.4 MB / 2.004 GB, free: 133.7 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.434e-06/5.274, allocations: 7.844 kB / 2.004 GB, free: 133.7 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.5071/5.781, allocations: 151.9 MB / 2.152 GB, free: 152.7 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001384/5.783, allocations: 0.581 MB / 2.153 GB, free: 152.7 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001865/5.785, allocations: 103.9 kB / 2.153 GB, free: 152.7 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008218/5.793, allocations: 1.48 MB / 2.154 GB, free: 152.7 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003059/5.796, allocations: 0.5181 MB / 2.155 GB, free: 152.7 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007277/5.797, allocations: 144.8 kB / 2.155 GB, free: 152.7 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.004036/5.801, allocations: 3.517 MB / 2.158 GB, free: 152.5 MB / 0.545 GB Notification: Performance of sort global known variables: time 8e-08/5.801, allocations: 0 / 2.158 GB, free: 152.5 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.01241/5.813, allocations: 3.802 MB / 2.162 GB, free: 152.5 MB / 0.545 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.3063/6.119, allocations: 152.4 MB / 2.311 GB, free: 25.5 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.2803/6.4, allocations: 32.58 MB / 2.343 GB, free: 173.8 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.414e-05/6.4, allocations: 3.875 kB / 2.343 GB, free: 173.8 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.035/6.435, allocations: 19.54 MB / 2.362 GB, free: 172.9 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006073/6.441, allocations: 0.8403 MB / 2.363 GB, free: 172.8 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.8716/7.312, allocations: 352.8 MB / 2.707 GB, free: 23.21 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00525/7.317, allocations: 5.101 MB / 2.712 GB, free: 18.09 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.003798/7.321, allocations: 2.065 MB / 2.714 GB, free: 16.02 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002815/7.324, allocations: 3.053 MB / 2.717 GB, free: 12.97 MB / 0.545 GB Notification: Performance of SimCode: time 1.252e-06/7.324, allocations: 0 / 2.717 GB, free: 12.97 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.755/8.079, allocations: 344.9 MB / 3.054 GB, free: 88.26 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 29.85/37.93, allocations: 6.422 kB / 3.054 GB, free: 88.26 MB / 0.5606 GB " [Timeout remaining time 622] (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar1/Fourbar1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 659] Reference file matches [Calling sys.exit(0), Time elapsed: 43.147321452968754]