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.001481/0.001481, allocations: 101.5 kB / 21.21 MB, free: 0.6289 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.001586/0.001586, allocations: 188.3 kB / 24.49 MB, free: 3.941 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.326/1.326, allocations: 225.7 MB / 253.3 MB, free: 12.83 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.001379/0.001379, allocations: 47.92 kB / 371.2 MB, free: 9.68 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2175/0.2189, allocations: 52.18 MB / 423.4 MB, free: 14.41 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.01589/0.2348, allocations: 13.72 MB / 437.1 MB, free: 0.6172 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01019/0.245, allocations: 4.914 MB / 442 MB, free: 11.69 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00241/0.2474, allocations: 135.2 kB / 442.1 MB, free: 11.55 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008278/0.2557, allocations: 4.318 MB / 446.4 MB, free: 7.223 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006468/0.2621, allocations: 2.622 MB / 449.1 MB, free: 4.59 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002707/0.2648, allocations: 1.158 MB / 450.2 MB, free: 3.43 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0111/0.2759, allocations: 7.997 MB / 458.2 MB, free: 11.42 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006554/0.2825, allocations: 4.283 MB / 462.5 MB, free: 7.055 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004355/0.2868, allocations: 2.512 MB / 465 MB, free: 4.535 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005523/0.2924, allocations: 3.625 MB / 468.6 MB, free: 0.8984 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001609/0.294, allocations: 0.5039 MB / 469.1 MB, free: 404 kB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003415/0.2974, allocations: 1.424 MB / 470.6 MB, free: 14.97 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003688/0.3011, allocations: 3.066 MB / 473.6 MB, free: 11.89 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003464/0.3045, allocations: 2.602 MB / 476.2 MB, free: 9.277 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01163/0.3162, allocations: 10.66 MB / 486.9 MB, free: 14.58 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.29e-06/0.3162, allocations: 3.938 kB / 486.9 MB, free: 14.57 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.3162, allocations: 0 / 486.9 MB, free: 14.57 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0002165/0.3164, allocations: 0 / 486.9 MB, free: 14.57 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.01704/0.3334, allocations: 7.992 MB / 494.9 MB, free: 6.504 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.039e-05/0.3335, allocations: 8.031 kB / 494.9 MB, free: 6.496 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0001885/0.3337, allocations: 179.5 kB / 495.1 MB, free: 6.316 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00168/0.3353, allocations: 1.078 MB / 496.2 MB, free: 5.227 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04859/0.3839, allocations: 8.449 MB / 0.4928 GB, free: 12.76 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01201/0.3959, allocations: 5.783 MB / 0.4984 GB, free: 6.895 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002957/0.3962, allocations: 344.7 kB / 0.4988 GB, free: 6.555 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001261/0.3975, allocations: 471.7 kB / 0.4992 GB, free: 6.094 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02529/0.4228, allocations: 14.55 MB / 0.5134 GB, free: 6.594 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001906/0.423, allocations: 75.42 kB / 0.5135 GB, free: 6.52 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005849/0.4236, allocations: 223.8 kB / 0.5137 GB, free: 6.301 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005311/0.4289, allocations: 2.84 MB / 0.5165 GB, free: 3.453 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02629/0.4552, allocations: 13.01 MB / 0.5292 GB, free: 6.41 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2566/0.7117, allocations: 55.04 MB / 0.5829 GB, free: 63.14 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01383/0.7256, allocations: 6.884 MB / 0.5897 GB, free: 56.23 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004089/0.7297, allocations: 4.554 MB / 0.5941 GB, free: 51.67 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01364/0.7433, allocations: 11.43 MB / 0.6053 GB, free: 40.42 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.405e-05/0.7433, allocations: 64.7 kB / 0.6053 GB, free: 40.35 MB / 446.1 MB Notification: Performance of pre-optimization done (n=326): time 6.212e-06/0.7433, allocations: 0 / 0.6053 GB, free: 40.35 MB / 446.1 MB Notification: Performance of matching and sorting (n=572): time 1.827/2.57, allocations: 411.1 MB / 1.007 GB, free: 132 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.793e-05/2.571, allocations: 277.5 kB / 1.007 GB, free: 131.7 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006182/2.577, allocations: 5.501 MB / 1.012 GB, free: 126.4 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.00143/2.578, allocations: 113.7 kB / 1.013 GB, free: 126.3 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.00169/2.58, allocations: 4.163 MB / 1.017 GB, free: 123.3 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.002031/2.582, allocations: 2.101 MB / 1.019 GB, free: 121.2 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00369/2.586, allocations: 2.077 MB / 1.021 GB, free: 119.1 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 3.564e-05/2.586, allocations: 305.1 kB / 1.021 GB, free: 118.8 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.011/2.597, allocations: 10.87 MB / 1.032 GB, free: 107.9 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01238/2.609, allocations: 15.07 MB / 1.046 GB, free: 90.89 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0249/2.634, allocations: 27.12 MB / 1.073 GB, free: 61.96 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.349e-05/2.634, allocations: 40 kB / 1.073 GB, free: 61.93 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1202) (initialization): time 0.478/3.112, allocations: 140.1 MB / 1.21 GB, free: 116.1 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 7.168e-05/3.112, allocations: 64 kB / 1.21 GB, free: 116.1 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.2e-05/3.112, allocations: 136.9 kB / 1.21 GB, free: 115.9 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.06857/3.181, allocations: 34.55 MB / 1.244 GB, free: 81.8 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00394/3.185, allocations: 1.487 MB / 1.245 GB, free: 80.44 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4069/3.592, allocations: 200.7 MB / 1.441 GB, free: 97.73 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01096/3.603, allocations: 1.709 MB / 1.443 GB, free: 96.04 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001747/3.604, allocations: 0.5232 MB / 1.443 GB, free: 95.51 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.004547/3.609, allocations: 3.085 MB / 1.446 GB, free: 92.64 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001508/3.61, allocations: 0.6168 MB / 1.447 GB, free: 92.3 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.4497/4.06, allocations: 136.1 MB / 1.58 GB, free: 155.7 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.118e-05/4.06, allocations: 56 kB / 1.58 GB, free: 155.6 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001159/4.06, allocations: 60 kB / 1.58 GB, free: 155.6 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.088e-05/4.06, allocations: 27.89 kB / 1.58 GB, free: 155.5 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5052/4.565, allocations: 202.7 MB / 1.778 GB, free: 153.8 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.017e-05/4.565, allocations: 7.844 kB / 1.778 GB, free: 153.8 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001352/4.567, allocations: 327.5 kB / 1.778 GB, free: 153.7 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.06165/4.628, allocations: 33.26 MB / 1.811 GB, free: 129.4 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001264/4.63, allocations: 104 kB / 1.811 GB, free: 129.3 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3866/5.016, allocations: 183.5 MB / 1.99 GB, free: 145 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.314e-06/5.016, allocations: 12.72 kB / 1.99 GB, free: 145 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.4858/5.502, allocations: 151.9 MB / 2.138 GB, free: 155.2 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001394/5.504, allocations: 0.5741 MB / 2.139 GB, free: 155.2 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001798/5.505, allocations: 101.8 kB / 2.139 GB, free: 155.2 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008708/5.514, allocations: 1.48 MB / 2.14 GB, free: 155.2 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0048/5.519, allocations: 0.5177 MB / 2.141 GB, free: 155.2 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001244/5.52, allocations: 140.4 kB / 2.141 GB, free: 155.2 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.005281/5.525, allocations: 3.521 MB / 2.144 GB, free: 155 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.5e-07/5.525, allocations: 2.562 kB / 2.144 GB, free: 155 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.01068/5.536, allocations: 3.802 MB / 2.148 GB, free: 155 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.2773/5.813, allocations: 152.4 MB / 2.297 GB, free: 39.85 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0468/5.86, allocations: 32.6 MB / 2.329 GB, free: 7.297 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.036e-05/5.86, allocations: 0 / 2.329 GB, free: 7.297 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.2197/6.08, allocations: 19.53 MB / 2.348 GB, free: 177 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005841/6.086, allocations: 0.8376 MB / 2.349 GB, free: 176.9 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.8459/6.932, allocations: 352.8 MB / 2.693 GB, free: 38.09 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005253/6.937, allocations: 4.615 MB / 2.698 GB, free: 33.48 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.003862/6.941, allocations: 2.065 MB / 2.7 GB, free: 31.54 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003283/6.944, allocations: 3.057 MB / 2.703 GB, free: 28.48 MB / 0.545 GB Notification: Performance of SimCode: time 1.503e-06/6.944, allocations: 0 / 2.703 GB, free: 28.48 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7783/7.722, allocations: 343.4 MB / 3.038 GB, free: 109.4 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 28.71/36.43, allocations: 7.812 kB / 3.038 GB, free: 109.4 MB / 0.5606 GB " [Timeout remaining time 623] (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: 42.19226163998246]