Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1,fileNamePrefix="Modelica_3_2_3_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.001566/0.001566, allocations: 109.3 kB / 17.73 MB, free: 5.34 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.001632/0.001632, allocations: 184.1 kB / 18.66 MB, free: 4.414 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.38/1.38, allocations: 205.1 MB / 224.5 MB, free: 12.25 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001805/0.001805, allocations: 59.91 kB / 328 MB, free: 3.805 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08718/0.08899, allocations: 46.61 MB / 374.6 MB, free: 5.082 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.18/0.2691, allocations: 16.02 MB / 390.7 MB, free: 3.855 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01278/0.2819, allocations: 5.145 MB / 395.8 MB, free: 0.5391 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004324/0.2863, allocations: 112.6 kB / 395.9 MB, free: 0.5156 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00884/0.2952, allocations: 4.444 MB / 400.4 MB, free: 14.43 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008015/0.3033, allocations: 2.546 MB / 402.9 MB, free: 13.2 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002996/0.3063, allocations: 1.159 MB / 404.1 MB, free: 12.56 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01171/0.318, allocations: 7.499 MB / 411.6 MB, free: 8.492 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006854/0.3249, allocations: 5.337 MB / 416.9 MB, free: 5.395 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004594/0.3295, allocations: 2.486 MB / 419.4 MB, free: 3 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005198/0.3348, allocations: 3.38 MB / 422.8 MB, free: 15.61 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001244/0.336, allocations: 0.5039 MB / 423.3 MB, free: 15.11 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003475/0.3395, allocations: 1.487 MB / 424.8 MB, free: 13.62 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003213/0.3428, allocations: 2.969 MB / 427.7 MB, free: 10.64 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005167/0.3479, allocations: 3.469 MB / 431.2 MB, free: 7.152 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01361/0.3616, allocations: 10.65 MB / 441.8 MB, free: 12.47 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.291e-06/0.3616, allocations: 0 / 441.8 MB, free: 12.47 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.834e-06/0.3616, allocations: 0 / 441.8 MB, free: 12.47 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002962/0.3619, allocations: 0 / 441.8 MB, free: 12.47 MB / 366.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.02054/0.3825, allocations: 8.118 MB / 450 MB, free: 4.254 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.63e-05/0.3825, allocations: 8.031 kB / 450 MB, free: 4.246 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002111/0.3846, allocations: 1.093 MB / 451.1 MB, free: 3.141 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05558/0.4402, allocations: 8.453 MB / 459.5 MB, free: 10.67 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01289/0.4532, allocations: 6.339 MB / 465.9 MB, free: 4.254 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003061/0.4535, allocations: 345 kB / 466.2 MB, free: 3.914 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001404/0.4549, allocations: 471.6 kB / 466.7 MB, free: 3.453 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02742/0.4823, allocations: 14.46 MB / 481.1 MB, free: 4.059 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002091/0.4826, allocations: 75.47 kB / 481.2 MB, free: 3.984 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000613/0.4832, allocations: 219.8 kB / 481.4 MB, free: 3.77 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005571/0.4888, allocations: 2.836 MB / 484.2 MB, free: 0.9297 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02727/0.5161, allocations: 13.01 MB / 497.2 MB, free: 3.895 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08232/0.5985, allocations: 58.18 MB / 0.5424 GB, free: 8.184 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01866/0.6172, allocations: 7.684 MB / 0.5499 GB, free: 356 kB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.2014/0.8186, allocations: 5.007 MB / 0.5548 GB, free: 147.4 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01946/0.8381, allocations: 12.72 MB / 0.5672 GB, free: 142 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.396e-05/0.8382, allocations: 66.59 kB / 0.5673 GB, free: 142 MB / 478.1 MB Notification: Performance of pre-optimization done (n=326): time 6.362e-06/0.8382, allocations: 0.9375 kB / 0.5673 GB, free: 142 MB / 478.1 MB Notification: Performance of matching and sorting (n=572): time 1.922/2.76, allocations: 411.7 MB / 0.9694 GB, free: 126.8 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.426e-05/2.76, allocations: 269.6 kB / 0.9696 GB, free: 126.5 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005751/2.766, allocations: 5.558 MB / 0.975 GB, free: 121.2 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001539/2.767, allocations: 113.7 kB / 0.9752 GB, free: 121.1 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001854/2.769, allocations: 4.169 MB / 0.9792 GB, free: 118.2 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002091/2.771, allocations: 2.097 MB / 0.9813 GB, free: 116.1 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003436/2.775, allocations: 2.085 MB / 0.9833 GB, free: 114 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 3.787e-05/2.775, allocations: 301.1 kB / 0.9836 GB, free: 113.7 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0107/2.786, allocations: 10.88 MB / 0.9942 GB, free: 102.8 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01254/2.798, allocations: 14.99 MB / 1.009 GB, free: 86.02 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02624/2.824, allocations: 27.12 MB / 1.035 GB, free: 57.09 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.798e-05/2.825, allocations: 40 kB / 1.035 GB, free: 57.05 MB / 494.1 MB Notification: Performance of matching and sorting (n=1202) (initialization): time 0.4845/3.309, allocations: 140.4 MB / 1.173 GB, free: 112.2 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 8.127e-05/3.309, allocations: 64 kB / 1.173 GB, free: 112.1 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001181/3.309, allocations: 136 kB / 1.173 GB, free: 112 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.07224/3.382, allocations: 34.57 MB / 1.206 GB, free: 78.28 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004149/3.386, allocations: 1.481 MB / 1.208 GB, free: 76.93 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4228/3.809, allocations: 203.2 MB / 1.406 GB, free: 61.33 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01264/3.821, allocations: 1.71 MB / 1.408 GB, free: 59.64 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002232/3.823, allocations: 0.5232 MB / 1.409 GB, free: 59.11 MB / 0.4981 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.005986/3.829, allocations: 3.096 MB / 1.412 GB, free: 56.23 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001825/3.831, allocations: 0.6145 MB / 1.412 GB, free: 55.93 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.4802/4.312, allocations: 136.4 MB / 1.545 GB, free: 104.6 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.746e-05/4.312, allocations: 57.16 kB / 1.545 GB, free: 104.5 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001644/4.312, allocations: 60 kB / 1.545 GB, free: 104.5 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001098/4.312, allocations: 28.88 kB / 1.546 GB, free: 104.4 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5412/4.853, allocations: 205.9 MB / 1.747 GB, free: 116.5 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.026e-05/4.853, allocations: 8.719 kB / 1.747 GB, free: 116.5 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001466/4.855, allocations: 331.4 kB / 1.747 GB, free: 116.2 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.06774/4.922, allocations: 33.28 MB / 1.779 GB, free: 86.79 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001679/4.924, allocations: 106.2 kB / 1.78 GB, free: 86.68 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4138/5.338, allocations: 185.8 MB / 1.961 GB, free: 90.93 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.888e-06/5.338, allocations: 12.72 kB / 1.961 GB, free: 90.92 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.5198/5.858, allocations: 152.3 MB / 2.11 GB, free: 125.5 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006373/5.864, allocations: 3.03 MB / 2.113 GB, free: 123.8 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002546/5.867, allocations: 99.73 kB / 2.113 GB, free: 123.8 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009294/5.876, allocations: 1.476 MB / 2.114 GB, free: 122.4 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003595/5.88, allocations: 495.9 kB / 2.115 GB, free: 122 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008271/5.881, allocations: 148.7 kB / 2.115 GB, free: 121.8 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.004694/5.885, allocations: 3.559 MB / 2.118 GB, free: 119.3 MB / 0.5137 GB Notification: Performance of sort global known variables: time 3.41e-07/5.885, allocations: 2.219 kB / 2.118 GB, free: 119.3 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.01206/5.897, allocations: 3.807 MB / 2.122 GB, free: 115.8 MB / 0.5137 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.5114/6.409, allocations: 152.8 MB / 2.271 GB, free: 134.5 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.05358/6.463, allocations: 33.67 MB / 2.304 GB, free: 121.4 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.454e-05/6.463, allocations: 0.7656 kB / 2.304 GB, free: 121.4 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.03704/6.5, allocations: 20.55 MB / 2.324 GB, free: 100.9 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00672/6.506, allocations: 0.836 MB / 2.325 GB, free: 100 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 1.103/7.609, allocations: 353.6 MB / 2.67 GB, free: 113.3 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006226/7.615, allocations: 5.117 MB / 2.675 GB, free: 111.1 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.003966/7.619, allocations: 2.072 MB / 2.677 GB, free: 109.2 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003195/7.623, allocations: 3.033 MB / 2.68 GB, free: 108.7 MB / 0.5137 GB Notification: Performance of SimCode: time 1.022e-06/7.623, allocations: 0 / 2.68 GB, free: 108.7 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7519/8.374, allocations: 334.7 MB / 3.007 GB, free: 161.9 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 28.32/36.69, allocations: 0.9375 kB / 3.007 GB, free: 161.9 MB / 0.5294 GB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar1/Fourbar1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches