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.001321/0.001321, allocations: 112.2 kB / 20.43 MB, free: 1.465 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.002025/0.002025, allocations: 185.3 kB / 23.72 MB, free: 4.715 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.432/1.432, allocations: 225.6 MB / 252.5 MB, free: 13.04 MB / 206.1 MB " [Timeout remaining time 178] 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001619/0.001619, allocations: 51.92 kB / 370.5 MB, free: 9.941 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2309/0.2326, allocations: 52.19 MB / 422.6 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.01823/0.2508, allocations: 16 MB / 438.6 MB, free: 14.53 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01118/0.262, allocations: 5.162 MB / 443.8 MB, free: 9.359 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002549/0.2645, allocations: 135.2 kB / 443.9 MB, free: 9.227 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008732/0.2733, allocations: 4.513 MB / 448.4 MB, free: 4.699 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00689/0.2801, allocations: 2.626 MB / 451.1 MB, free: 2.062 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002768/0.2829, allocations: 1.151 MB / 452.2 MB, free: 0.9102 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01187/0.2948, allocations: 7.994 MB / 460.2 MB, free: 8.902 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006598/0.3014, allocations: 4.294 MB / 464.5 MB, free: 4.527 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004551/0.3059, allocations: 2.512 MB / 467 MB, free: 2.008 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005707/0.3116, allocations: 3.618 MB / 470.6 MB, free: 14.38 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001558/0.3132, allocations: 0.5039 MB / 471.1 MB, free: 13.88 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003543/0.3167, allocations: 1.549 MB / 472.7 MB, free: 12.32 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003926/0.3207, allocations: 3.07 MB / 475.8 MB, free: 9.246 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005693/0.3264, allocations: 3.43 MB / 479.2 MB, free: 5.797 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01447/0.3408, allocations: 10.61 MB / 489.8 MB, free: 11.14 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.482e-06/0.3408, allocations: 0 / 489.8 MB, free: 11.14 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.834e-06/0.3408, allocations: 0 / 489.8 MB, free: 11.14 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0003659/0.3412, allocations: 0 / 489.8 MB, free: 11.14 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.02094/0.3621, allocations: 7.996 MB / 497.8 MB, free: 3.066 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.328e-05/0.3622, allocations: 12.03 kB / 497.8 MB, free: 3.055 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002375/0.3646, allocations: 1.078 MB / 498.9 MB, free: 1.965 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05207/0.4166, allocations: 8.441 MB / 0.4954 GB, free: 9.508 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01359/0.4302, allocations: 5.771 MB / 0.5011 GB, free: 3.652 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003289/0.4306, allocations: 344.8 kB / 0.5014 GB, free: 3.312 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001572/0.4321, allocations: 467.7 kB / 0.5018 GB, free: 2.855 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02626/0.4584, allocations: 14.47 MB / 0.516 GB, free: 3.453 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001874/0.4586, allocations: 75.41 kB / 0.5161 GB, free: 3.379 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005527/0.4591, allocations: 215.8 kB / 0.5163 GB, free: 3.168 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005413/0.4645, allocations: 2.844 MB / 0.519 GB, free: 324 kB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02561/0.4902, allocations: 13 MB / 0.5317 GB, free: 3.285 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2233/0.7135, allocations: 58.02 MB / 0.5884 GB, free: 57.57 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01386/0.7273, allocations: 6.896 MB / 0.5951 GB, free: 50.62 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003903/0.7312, allocations: 4.551 MB / 0.5996 GB, free: 46.07 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01508/0.7463, allocations: 12.29 MB / 0.6116 GB, free: 33.96 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.103e-05/0.7463, allocations: 64.7 kB / 0.6116 GB, free: 33.89 MB / 446.1 MB Notification: Performance of pre-optimization done (n=326): time 4.939e-06/0.7464, allocations: 0 / 0.6116 GB, free: 33.89 MB / 446.1 MB Notification: Performance of matching and sorting (n=572): time 1.917/2.663, allocations: 411 MB / 1.013 GB, free: 125.5 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.775e-05/2.663, allocations: 265.6 kB / 1.013 GB, free: 125.2 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006051/2.669, allocations: 5.502 MB / 1.019 GB, free: 119.9 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.001557/2.671, allocations: 109.7 kB / 1.019 GB, free: 119.8 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.001944/2.673, allocations: 4.154 MB / 1.023 GB, free: 116.8 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.002243/2.675, allocations: 2.104 MB / 1.025 GB, free: 114.8 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003573/2.679, allocations: 2.08 MB / 1.027 GB, free: 112.7 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 3.869e-05/2.679, allocations: 305.1 kB / 1.027 GB, free: 112.4 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01193/2.69, allocations: 10.88 MB / 1.038 GB, free: 101.5 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01425/2.705, allocations: 14.99 MB / 1.052 GB, free: 84.65 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02934/2.734, allocations: 27.12 MB / 1.079 GB, free: 55.68 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001286/2.734, allocations: 40 kB / 1.079 GB, free: 55.64 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1202) (initialization): time 0.5113/3.246, allocations: 140.1 MB / 1.216 GB, free: 110 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 9.763e-05/3.246, allocations: 64 kB / 1.216 GB, free: 110 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001614/3.246, allocations: 139.6 kB / 1.216 GB, free: 109.8 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.07053/3.316, allocations: 34.56 MB / 1.25 GB, free: 75.36 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00445/3.321, allocations: 1.479 MB / 1.251 GB, free: 74 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4571/3.778, allocations: 202.8 MB / 1.449 GB, free: 88.73 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01184/3.79, allocations: 1.703 MB / 1.451 GB, free: 87.04 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001962/3.792, allocations: 0.5232 MB / 1.451 GB, free: 86.52 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.005595/3.797, allocations: 3.084 MB / 1.454 GB, free: 83.65 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001688/3.799, allocations: 0.6228 MB / 1.455 GB, free: 83.3 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.5467/4.346, allocations: 136.1 MB / 1.588 GB, free: 147 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.082e-05/4.346, allocations: 56.69 kB / 1.588 GB, free: 146.9 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001588/4.346, allocations: 60 kB / 1.588 GB, free: 146.8 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001152/4.346, allocations: 31.17 kB / 1.588 GB, free: 146.8 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5793/4.925, allocations: 205.5 MB / 1.789 GB, free: 145.4 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.448e-05/4.925, allocations: 7.75 kB / 1.789 GB, free: 145.4 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001505/4.927, allocations: 332.9 kB / 1.789 GB, free: 145.4 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.06573/4.993, allocations: 33.28 MB / 1.822 GB, free: 117.8 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001491/4.994, allocations: 99.98 kB / 1.822 GB, free: 117.7 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4352/5.429, allocations: 185.4 MB / 2.003 GB, free: 134.1 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.254e-06/5.429, allocations: 14.7 kB / 2.003 GB, free: 134.1 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.5147/5.944, allocations: 151.9 MB / 2.151 GB, free: 152.2 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001623/5.946, allocations: 0.5822 MB / 2.152 GB, free: 152.2 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002457/5.948, allocations: 97.33 kB / 2.152 GB, free: 152.2 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008352/5.956, allocations: 1.483 MB / 2.153 GB, free: 152.2 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003238/5.96, allocations: 0.5201 MB / 2.154 GB, free: 152.1 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007833/5.96, allocations: 140.9 kB / 2.154 GB, free: 152.1 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.004336/5.965, allocations: 3.525 MB / 2.157 GB, free: 152 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.3e-07/5.965, allocations: 0.5625 kB / 2.157 GB, free: 152 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.01101/5.976, allocations: 3.797 MB / 2.161 GB, free: 152 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.3001/6.276, allocations: 152.4 MB / 2.31 GB, free: 25.81 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.2665/6.542, allocations: 32.59 MB / 2.342 GB, free: 173.6 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 9.488e-06/6.542, allocations: 0 / 2.342 GB, free: 173.6 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.03463/6.577, allocations: 19.55 MB / 2.361 GB, free: 172.6 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006393/6.583, allocations: 0.8277 MB / 2.362 GB, free: 172.5 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.8744/7.458, allocations: 352.8 MB / 2.706 GB, free: 23.82 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006524/7.464, allocations: 5.096 MB / 2.711 GB, free: 18.72 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.004122/7.468, allocations: 2.065 MB / 2.713 GB, free: 16.65 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003203/7.472, allocations: 3.033 MB / 2.716 GB, free: 13.62 MB / 0.545 GB Notification: Performance of SimCode: time 1.213e-06/7.472, allocations: 0 / 2.716 GB, free: 13.62 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8364/8.308, allocations: 344.9 MB / 3.053 GB, free: 88.6 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 31.27/39.58, allocations: 4.062 kB / 3.053 GB, free: 88.59 MB / 0.5606 GB " [Timeout remaining time 620] (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.54673778708093]