Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.00145/0.00145, allocations: 107.1 kB / 17.32 MB, free: 5.672 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001752/0.001752, allocations: 205.8 kB / 18.26 MB, free: 4.969 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.455/1.455, allocations: 227.4 MB / 246.4 MB, free: 10.8 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001172/0.001171, allocations: 58.81 kB / 306.6 MB, free: 0.8477 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1149/0.1161, allocations: 50.54 MB / 357.1 MB, free: 14.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.2321/0.3482, allocations: 74.84 MB / 431.9 MB, free: 0.6094 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.03362/0.3819, allocations: 14.64 MB / 446.6 MB, free: 1.93 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01396/0.3959, allocations: 339.1 kB / 446.9 MB, free: 1.598 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00888/0.4048, allocations: 4.254 MB / 451.2 MB, free: 13.33 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0068/0.4117, allocations: 2.328 MB / 453.5 MB, free: 11 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002628/0.4143, allocations: 1.077 MB / 454.6 MB, free: 9.918 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01057/0.4249, allocations: 8.659 MB / 463.2 MB, free: 1.242 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007587/0.4325, allocations: 5.574 MB / 468.8 MB, free: 11.62 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004334/0.4369, allocations: 2.507 MB / 471.3 MB, free: 9.102 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005031/0.4419, allocations: 3.72 MB / 475 MB, free: 5.371 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001646/0.4436, allocations: 0.5039 MB / 475.5 MB, free: 4.867 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003316/0.447, allocations: 1.51 MB / 477 MB, free: 3.355 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003612/0.4506, allocations: 2.981 MB / 480 MB, free: 376 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005358/0.456, allocations: 3.442 MB / 483.5 MB, free: 12.9 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0111/0.4671, allocations: 10.26 MB / 493.7 MB, free: 2.609 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.404e-06/0.4671, allocations: 0 / 493.7 MB, free: 2.609 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.4671, allocations: 0 / 493.7 MB, free: 2.609 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0002905/0.4674, allocations: 4 kB / 493.7 MB, free: 2.605 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.01873/0.4862, allocations: 7.91 MB / 0.4899 GB, free: 10.61 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.447e-05/0.4862, allocations: 12.03 kB / 0.4899 GB, free: 10.6 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002359/0.4886, allocations: 1.082 MB / 0.4909 GB, free: 9.504 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05138/0.54, allocations: 8.522 MB / 0.4993 GB, free: 0.9609 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01286/0.5529, allocations: 5.407 MB / 0.5045 GB, free: 11.47 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003341/0.5533, allocations: 341.1 kB / 0.5049 GB, free: 11.14 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002098/0.5554, allocations: 463.6 kB / 0.5053 GB, free: 10.68 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02844/0.5839, allocations: 14.46 MB / 0.5194 GB, free: 11.29 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002708/0.5842, allocations: 83.27 kB / 0.5195 GB, free: 11.21 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001726/0.5859, allocations: 211.8 kB / 0.5197 GB, free: 11 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005465/0.5914, allocations: 2.832 MB / 0.5225 GB, free: 8.156 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2165/0.8079, allocations: 13 MB / 0.5352 GB, free: 141.1 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05933/0.8673, allocations: 58.29 MB / 0.5921 GB, free: 99.18 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01475/0.8821, allocations: 7.69 MB / 0.5996 GB, free: 91.34 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004731/0.8869, allocations: 5.019 MB / 0.6045 GB, free: 86.32 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01639/0.9033, allocations: 12.68 MB / 0.6169 GB, free: 73.58 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.152e-05/0.9034, allocations: 76.64 kB / 0.617 GB, free: 73.5 MB / 446.1 MB Notification: Performance of pre-optimization done (n=326): time 6.212e-06/0.9034, allocations: 0 / 0.617 GB, free: 73.5 MB / 446.1 MB Notification: Performance of matching and sorting (n=572): time 1.868/2.771, allocations: 411.3 MB / 1.019 GB, free: 26.32 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001134/2.771, allocations: 269.6 kB / 1.019 GB, free: 26.01 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007285/2.779, allocations: 5.482 MB / 1.024 GB, free: 20.55 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001677/2.78, allocations: 117.7 kB / 1.024 GB, free: 20.43 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001846/2.782, allocations: 4.006 MB / 1.028 GB, free: 16.44 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00261/2.785, allocations: 2.006 MB / 1.03 GB, free: 14.45 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004132/2.789, allocations: 2.071 MB / 1.032 GB, free: 12.37 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.1779/2.967, allocations: 305.4 kB / 1.033 GB, free: 141.2 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01713/2.984, allocations: 10.88 MB / 1.043 GB, free: 138.3 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01944/3.004, allocations: 14.99 MB / 1.058 GB, free: 128.8 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02875/3.032, allocations: 27.12 MB / 1.084 GB, free: 113.3 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001046/3.033, allocations: 42.25 kB / 1.084 GB, free: 113.3 MB / 462.1 MB Notification: Performance of matching and sorting (n=1202) (initialization): time 0.486/3.519, allocations: 140.5 MB / 1.222 GB, free: 120.2 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.5e-05/3.519, allocations: 70.19 kB / 1.222 GB, free: 120.2 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001358/3.519, allocations: 143.8 kB / 1.222 GB, free: 120.2 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.07317/3.592, allocations: 34.63 MB / 1.256 GB, free: 109.3 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004359/3.596, allocations: 1.473 MB / 1.257 GB, free: 109 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4125/4.009, allocations: 203.2 MB / 1.455 GB, free: 90.69 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01329/4.022, allocations: 1.709 MB / 1.457 GB, free: 89.7 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002287/4.025, allocations: 0.5199 MB / 1.458 GB, free: 89.23 MB / 478.1 MB 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.005913/4.031, allocations: 3.093 MB / 1.461 GB, free: 86.68 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001798/4.032, allocations: 0.5821 MB / 1.461 GB, free: 86.41 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.4538/4.486, allocations: 136.5 MB / 1.595 GB, free: 118.2 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.171e-05/4.486, allocations: 58.72 kB / 1.595 GB, free: 118.2 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001217/4.486, allocations: 59.59 kB / 1.595 GB, free: 118.2 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.316e-05/4.486, allocations: 31.52 kB / 1.595 GB, free: 118.2 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4881/4.975, allocations: 206.2 MB / 1.796 GB, free: 90.51 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.041e-05/4.975, allocations: 8 kB / 1.796 GB, free: 90.5 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001402/4.976, allocations: 336.2 kB / 1.796 GB, free: 90.19 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.06542/5.041, allocations: 33.33 MB / 1.829 GB, free: 60.1 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00134/5.043, allocations: 104 kB / 1.829 GB, free: 60 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3766/5.42, allocations: 185.8 MB / 2.011 GB, free: 48.46 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.412e-06/5.42, allocations: 7.75 kB / 2.011 GB, free: 48.46 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.433/5.853, allocations: 152.3 MB / 2.159 GB, free: 68.16 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001768/5.854, allocations: 0.6219 MB / 2.16 GB, free: 67.84 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002661/5.857, allocations: 99.98 kB / 2.16 GB, free: 67.74 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009284/5.866, allocations: 1.482 MB / 2.161 GB, free: 66.26 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.004299/5.871, allocations: 0.4905 MB / 2.162 GB, free: 65.77 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009371/5.872, allocations: 142.7 kB / 2.162 GB, free: 65.64 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.005085/5.877, allocations: 3.513 MB / 2.165 GB, free: 62.15 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.31e-07/5.877, allocations: 0 / 2.165 GB, free: 62.15 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.01356/5.89, allocations: 3.783 MB / 2.169 GB, free: 58.37 MB / 478.1 MB 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.4672/6.357, allocations: 152.8 MB / 2.318 GB, free: 79.2 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.05469/6.412, allocations: 38.68 MB / 2.356 GB, free: 41.79 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.315e-05/6.412, allocations: 0 / 2.356 GB, free: 41.79 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.03303/6.445, allocations: 20.53 MB / 2.376 GB, free: 21.34 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00531/6.451, allocations: 0.8284 MB / 2.377 GB, free: 20.54 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 1.11/7.561, allocations: 373.9 MB / 2.742 GB, free: 137.5 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007085/7.568, allocations: 5.101 MB / 2.747 GB, free: 136.6 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.004383/7.572, allocations: 2.065 MB / 2.749 GB, free: 136.5 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002535/7.575, allocations: 3.025 MB / 2.752 GB, free: 136.5 MB / 494.1 MB Notification: Performance of SimCode: time 6.42e-07/7.575, allocations: 0 / 2.752 GB, free: 136.5 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.611/10.19, allocations: 339.5 MB / 3.084 GB, free: 131.5 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002013/10.19, allocations: 236.4 kB / 3.084 GB, free: 131.2 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.477/17.66, allocations: 3.719 kB / 3.084 GB, free: 131.2 MB / 494.1 MB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches