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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001745/0.001745, allocations: 112.7 kB / 17.07 MB, free: 5.984 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001946/0.001946, allocations: 193.4 kB / 18 MB, free: 5.074 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.364/1.364, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001495/0.001495, allocations: 43.92 kB / 350.8 MB, free: 3.742 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2585/0.2601, allocations: 49.44 MB / 400.2 MB, free: 8.406 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.01679/0.2769, allocations: 15.92 MB / 416.2 MB, free: 8.812 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01013/0.2871, allocations: 5.101 MB / 421.3 MB, free: 3.695 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002149/0.2892, allocations: 111.6 kB / 421.4 MB, free: 3.586 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007905/0.2972, allocations: 4.45 MB / 425.8 MB, free: 15.12 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006716/0.304, allocations: 2.527 MB / 428.3 MB, free: 12.59 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002655/0.3066, allocations: 1.151 MB / 429.5 MB, free: 11.43 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01189/0.3186, allocations: 7.97 MB / 437.5 MB, free: 3.445 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007674/0.3263, allocations: 5.318 MB / 442.8 MB, free: 14.05 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005153/0.3315, allocations: 2.453 MB / 445.2 MB, free: 11.59 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005761/0.3373, allocations: 3.361 MB / 448.6 MB, free: 8.215 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002066/0.3394, allocations: 0.5039 MB / 449.1 MB, free: 7.711 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004059/0.3435, allocations: 1.502 MB / 450.6 MB, free: 6.207 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004181/0.3477, allocations: 2.957 MB / 453.6 MB, free: 3.242 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006177/0.3539, allocations: 3.446 MB / 457 MB, free: 15.77 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01448/0.3684, allocations: 10.6 MB / 467.6 MB, free: 5.141 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.135e-05/0.3684, allocations: 4 kB / 467.6 MB, free: 5.137 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.184e-06/0.3684, allocations: 3.938 kB / 467.6 MB, free: 5.133 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003617/0.3688, allocations: 0 / 467.6 MB, free: 5.133 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.02129/0.3901, allocations: 8.062 MB / 475.7 MB, free: 12.98 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.683e-05/0.3902, allocations: 8.031 kB / 475.7 MB, free: 12.97 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002693/0.3929, allocations: 1.082 MB / 476.8 MB, free: 11.88 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0566/0.4495, allocations: 8.449 MB / 485.2 MB, free: 3.41 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01273/0.4622, allocations: 5.866 MB / 491.1 MB, free: 13.46 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003186/0.4626, allocations: 344.8 kB / 491.4 MB, free: 13.12 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00133/0.4639, allocations: 471.7 kB / 491.9 MB, free: 12.66 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0266/0.4906, allocations: 14.46 MB / 0.4945 GB, free: 13.27 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000207/0.4908, allocations: 75.47 kB / 0.4945 GB, free: 13.2 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006309/0.4914, allocations: 207.8 kB / 0.4947 GB, free: 12.99 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005542/0.497, allocations: 2.836 MB / 0.4975 GB, free: 10.15 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02755/0.5246, allocations: 13.02 MB / 0.5102 GB, free: 13.11 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2648/0.7894, allocations: 58.13 MB / 0.567 GB, free: 94.77 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01499/0.8045, allocations: 7.676 MB / 0.5745 GB, free: 92.12 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00457/0.8091, allocations: 5.004 MB / 0.5794 GB, free: 89.7 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01402/0.8231, allocations: 12.71 MB / 0.5918 GB, free: 79.48 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.608e-05/0.8232, allocations: 68.17 kB / 0.5918 GB, free: 79.41 MB / 462.1 MB Notification: Performance of pre-optimization done (n=326): time 6.272e-06/0.8232, allocations: 0 / 0.5918 GB, free: 79.41 MB / 462.1 MB Notification: Performance of matching and sorting (n=572): time 1.973/2.796, allocations: 411.5 MB / 0.9937 GB, free: 126.5 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.742e-05/2.797, allocations: 265.6 kB / 0.994 GB, free: 126.2 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006383/2.803, allocations: 5.512 MB / 0.9994 GB, free: 121 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.001608/2.805, allocations: 113.7 kB / 0.9995 GB, free: 120.8 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.001866/2.806, allocations: 4.155 MB / 1.004 GB, free: 117.3 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.002293/2.809, allocations: 2.096 MB / 1.006 GB, free: 115.2 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00406/2.813, allocations: 2.084 MB / 1.008 GB, free: 113.1 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 4.432e-05/2.813, allocations: 301.1 kB / 1.008 GB, free: 112.8 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01166/2.825, allocations: 10.88 MB / 1.019 GB, free: 102 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01393/2.839, allocations: 14.99 MB / 1.033 GB, free: 85.13 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02719/2.866, allocations: 27.11 MB / 1.06 GB, free: 56.16 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001361/2.866, allocations: 40 kB / 1.06 GB, free: 56.12 MB / 0.5137 GB Notification: Performance of matching and sorting (n=1202) (initialization): time 0.5341/3.4, allocations: 140.4 MB / 1.197 GB, free: 104.1 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 9.516e-05/3.4, allocations: 67.98 kB / 1.197 GB, free: 104.1 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001452/3.4, allocations: 136 kB / 1.197 GB, free: 103.9 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.07279/3.473, allocations: 34.56 MB / 1.231 GB, free: 69.45 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004219/3.477, allocations: 1.479 MB / 1.232 GB, free: 68.1 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.432/3.909, allocations: 203.2 MB / 1.431 GB, free: 75.99 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01194/3.921, allocations: 1.701 MB / 1.432 GB, free: 74.3 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001816/3.923, allocations: 0.5308 MB / 1.433 GB, free: 73.77 MB / 0.5294 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.005457/3.929, allocations: 3.087 MB / 1.436 GB, free: 70.83 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001732/3.93, allocations: 0.6104 MB / 1.436 GB, free: 70.34 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.5138/4.444, allocations: 136.4 MB / 1.57 GB, free: 127 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.375e-05/4.444, allocations: 62.7 kB / 1.57 GB, free: 127 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001446/4.445, allocations: 56 kB / 1.57 GB, free: 126.9 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001165/4.445, allocations: 27.89 kB / 1.57 GB, free: 126.9 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5436/4.988, allocations: 205.9 MB / 1.771 GB, free: 120.6 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.66e-05/4.988, allocations: 4 kB / 1.771 GB, free: 120.6 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001466/4.99, allocations: 337 kB / 1.771 GB, free: 120.3 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0673/5.057, allocations: 33.27 MB / 1.804 GB, free: 91.89 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001543/5.059, allocations: 103.9 kB / 1.804 GB, free: 91.79 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4312/5.49, allocations: 185.8 MB / 1.985 GB, free: 104.2 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.033e-06/5.49, allocations: 8 kB / 1.985 GB, free: 104.2 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.5253/6.015, allocations: 152.3 MB / 2.134 GB, free: 143.7 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001689/6.017, allocations: 0.6642 MB / 2.135 GB, free: 143.5 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00274/6.02, allocations: 102.9 kB / 2.135 GB, free: 143.5 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009348/6.029, allocations: 1.474 MB / 2.136 GB, free: 142.8 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003797/6.033, allocations: 0.4929 MB / 2.137 GB, free: 142.6 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001109/6.034, allocations: 148.9 kB / 2.137 GB, free: 142.6 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.004685/6.039, allocations: 3.519 MB / 2.14 GB, free: 141 MB / 0.5294 GB Notification: Performance of sort global known variables: time 8.21e-07/6.039, allocations: 1.969 kB / 2.14 GB, free: 141 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.01244/6.051, allocations: 3.802 MB / 2.144 GB, free: 137.6 MB / 0.5294 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.5347/6.586, allocations: 152.8 MB / 2.293 GB, free: 142.2 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.05246/6.639, allocations: 33.67 MB / 2.326 GB, free: 132.8 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.65e-05/6.639, allocations: 3.688 kB / 2.326 GB, free: 132.8 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0371/6.676, allocations: 20.55 MB / 2.346 GB, free: 123.2 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006703/6.682, allocations: 0.8277 MB / 2.347 GB, free: 122.5 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 1.161/7.843, allocations: 353.3 MB / 2.692 GB, free: 142 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007015/7.85, allocations: 5.102 MB / 2.697 GB, free: 141.1 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.00427/7.855, allocations: 2.068 MB / 2.699 GB, free: 141 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003569/7.858, allocations: 3.025 MB / 2.702 GB, free: 141 MB / 0.5294 GB Notification: Performance of SimCode: time 6.31e-07/7.858, allocations: 0 / 2.702 GB, free: 141 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.631/8.489, allocations: 334.3 MB / 3.028 GB, free: 39.77 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 28.76/37.25, allocations: 11.86 kB / 3.028 GB, free: 39.75 MB / 0.545 GB (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 --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) 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) Reference file matches