Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.001189/0.001189, allocations: 123.4 kB / 17.79 MB, free: 5.266 MB / 14.72 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.00146/0.00146, allocations: 200.3 kB / 20.74 MB, free: 2.32 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.47/1.47, allocations: 230.6 MB / 254.1 MB, free: 15.06 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4_1_0_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001645/0.001645, allocations: 51.92 kB / 373 MB, free: 10.19 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1023/0.104, allocations: 53.32 MB / 426.3 MB, free: 4.773 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.2113/0.3153, allocations: 15.93 MB / 442.2 MB, free: 2.129 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01107/0.3264, allocations: 5.158 MB / 447.4 MB, free: 15 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003695/0.33, allocations: 137.3 kB / 447.5 MB, free: 14.95 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009713/0.3398, allocations: 4.477 MB / 452 MB, free: 12.91 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008923/0.3487, allocations: 2.57 MB / 454.6 MB, free: 11.66 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003895/0.3526, allocations: 1.151 MB / 455.7 MB, free: 11.16 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01315/0.3657, allocations: 8.099 MB / 463.8 MB, free: 6.949 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006935/0.3727, allocations: 4.532 MB / 468.4 MB, free: 4.129 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005189/0.3778, allocations: 2.51 MB / 470.9 MB, free: 2.707 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006959/0.3848, allocations: 3.611 MB / 474.5 MB, free: 488 kB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003084/0.3879, allocations: 0.5111 MB / 475 MB, free: 15.99 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004999/0.3929, allocations: 1.533 MB / 476.5 MB, free: 14.46 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004909/0.3978, allocations: 3.034 MB / 479.6 MB, free: 11.41 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006739/0.4045, allocations: 3.422 MB / 483 MB, free: 7.973 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0157/0.4202, allocations: 10.54 MB / 493.5 MB, free: 13.39 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.312e-06/0.4202, allocations: 0 / 493.5 MB, free: 13.39 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.4202, allocations: 0 / 493.5 MB, free: 13.39 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.000375/0.4206, allocations: 4 kB / 493.5 MB, free: 13.39 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.02663/0.4473, allocations: 8.11 MB / 0.4899 GB, free: 5.18 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.855e-05/0.4473, allocations: 8.031 kB / 0.4899 GB, free: 5.172 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003955/0.4513, allocations: 1.082 MB / 0.4909 GB, free: 4.078 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05815/0.5094, allocations: 8.562 MB / 0.4993 GB, free: 11.5 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01384/0.5233, allocations: 5.542 MB / 0.5047 GB, free: 5.879 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004491/0.5237, allocations: 341.1 kB / 0.505 GB, free: 5.543 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002265/0.526, allocations: 471.6 kB / 0.5055 GB, free: 5.082 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03284/0.5588, allocations: 14.47 MB / 0.5196 GB, free: 5.684 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004234/0.5592, allocations: 71.47 kB / 0.5197 GB, free: 5.613 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001921/0.5612, allocations: 215.8 kB / 0.5199 GB, free: 5.402 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006355/0.5675, allocations: 2.832 MB / 0.5227 GB, free: 2.562 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03078/0.5983, allocations: 13.01 MB / 0.5354 GB, free: 5.531 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08867/0.687, allocations: 58.12 MB / 0.5921 GB, free: 9.91 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02061/0.7076, allocations: 7.344 MB / 0.5993 GB, free: 2.422 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007147/0.7147, allocations: 4.502 MB / 0.6037 GB, free: 13.9 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02499/0.7397, allocations: 12.71 MB / 0.6161 GB, free: 1.027 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.561e-05/0.7398, allocations: 68.64 kB / 0.6162 GB, free: 0.9492 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=326): time 7.394e-06/0.7398, allocations: 0 / 0.6162 GB, free: 0.9492 MB / 0.5137 GB Notification: Performance of matching and sorting (n=572): time 2.239/2.979, allocations: 411.4 MB / 1.018 GB, free: 159.2 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001134/2.979, allocations: 266.5 kB / 1.018 GB, free: 158.9 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008639/2.988, allocations: 5.503 MB / 1.024 GB, free: 157.3 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.001566/2.989, allocations: 112 kB / 1.024 GB, free: 157.2 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.00306/2.992, allocations: 4.153 MB / 1.028 GB, free: 155.3 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.002711/2.995, allocations: 2.105 MB / 1.03 GB, free: 153.7 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004795/3, allocations: 2.074 MB / 1.032 GB, free: 152.9 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 4.029e-05/3, allocations: 305.1 kB / 1.032 GB, free: 152.6 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01429/3.014, allocations: 10.88 MB / 1.043 GB, free: 148.4 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01584/3.03, allocations: 14.99 MB / 1.057 GB, free: 138.9 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02773/3.058, allocations: 27.13 MB / 1.084 GB, free: 123.5 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001354/3.058, allocations: 39.69 kB / 1.084 GB, free: 123.5 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1202) (initialization): time 0.548/3.606, allocations: 140.2 MB / 1.221 GB, free: 157.9 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001016/3.606, allocations: 63.41 kB / 1.221 GB, free: 157.9 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002026/3.606, allocations: 137.7 kB / 1.221 GB, free: 157.9 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.07991/3.686, allocations: 34.58 MB / 1.255 GB, free: 152.3 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004505/3.691, allocations: 1.479 MB / 1.256 GB, free: 152.3 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4507/4.141, allocations: 203.2 MB / 1.455 GB, free: 138 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01185/4.153, allocations: 1.715 MB / 1.456 GB, free: 137.9 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001528/4.155, allocations: 0.522 MB / 1.457 GB, free: 137.8 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.004984/4.16, allocations: 3.085 MB / 1.46 GB, free: 136.6 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001972/4.162, allocations: 0.6085 MB / 1.46 GB, free: 136.6 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2975/4.459, allocations: 136.2 MB / 1.593 GB, free: 25.54 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.951e-05/4.459, allocations: 58.03 kB / 1.593 GB, free: 25.48 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001366/4.459, allocations: 56.66 kB / 1.593 GB, free: 25.43 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001021/4.459, allocations: 31.89 kB / 1.593 GB, free: 25.4 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5874/5.047, allocations: 205.7 MB / 1.794 GB, free: 22.28 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.304e-05/5.047, allocations: 8 kB / 1.794 GB, free: 22.27 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001449/5.048, allocations: 327.5 kB / 1.795 GB, free: 21.95 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.07309/5.121, allocations: 33.29 MB / 1.827 GB, free: 4.906 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001854/5.123, allocations: 104.8 kB / 1.827 GB, free: 4.805 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4362/5.56, allocations: 185.9 MB / 2.009 GB, free: 46.99 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.705e-06/5.56, allocations: 7.75 kB / 2.009 GB, free: 46.98 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.533/6.093, allocations: 152 MB / 2.157 GB, free: 99.99 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001652/6.094, allocations: 0.6587 MB / 2.158 GB, free: 99.66 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002442/6.097, allocations: 98.59 kB / 2.158 GB, free: 99.57 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009601/6.106, allocations: 1.486 MB / 2.159 GB, free: 98.08 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.004726/6.111, allocations: 497.2 kB / 2.16 GB, free: 97.6 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001342/6.112, allocations: 149.2 kB / 2.16 GB, free: 97.45 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.004727/6.117, allocations: 3.515 MB / 2.163 GB, free: 93.96 MB / 0.5606 GB Notification: Performance of sort global known variables: time 9e-08/6.117, allocations: 0 / 2.163 GB, free: 93.96 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.01366/6.131, allocations: 3.781 MB / 2.167 GB, free: 90.19 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.5589/6.69, allocations: 152.5 MB / 2.316 GB, free: 143.1 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.05383/6.743, allocations: 32.61 MB / 2.348 GB, free: 114.3 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.106e-05/6.744, allocations: 0 / 2.348 GB, free: 114.3 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.03676/6.78, allocations: 19.57 MB / 2.367 GB, free: 94.74 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006563/6.787, allocations: 0.8208 MB / 2.368 GB, free: 93.95 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 1.205/7.992, allocations: 352.8 MB / 2.712 GB, free: 138.2 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008037/8, allocations: 5.103 MB / 2.717 GB, free: 136.1 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.004695/8.005, allocations: 2.068 MB / 2.719 GB, free: 135.3 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003701/8.009, allocations: 3.021 MB / 2.722 GB, free: 135 MB / 0.5606 GB Notification: Performance of SimCode: time 1.352e-06/8.009, allocations: 3.406 kB / 2.722 GB, free: 135 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6158/8.624, allocations: 336.1 MB / 3.051 GB, free: 6.887 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 28.75/37.37, allocations: 7.734 kB / 3.051 GB, free: 6.879 MB / 0.5606 GB " [Timeout remaining time 622] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1.fmu > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.mat","/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_4.1.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.2417795129586]