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.0008739/0.0008741, allocations: 92.69 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009777/0.0009777, allocations: 203.4 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.21/1.21, allocations: 227.7 MB / 246.8 MB, free: 11.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002016/0.0002016, allocations: 8 kB / 307.8 MB, free: 0.7344 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08158/0.0818, allocations: 51.53 MB / 359.4 MB, free: 13.21 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.2056/0.2875, allocations: 73.01 MB / 432.4 MB, free: 1.762 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.03212/0.3196, allocations: 14.68 MB / 447.1 MB, free: 3.043 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01262/0.3323, allocations: 335.1 kB / 447.4 MB, free: 2.715 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001959/0.3342, allocations: 0.5945 MB / 448 MB, free: 2.117 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006277/0.3405, allocations: 2.363 MB / 450.3 MB, free: 15.75 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00226/0.3428, allocations: 1.053 MB / 451.4 MB, free: 14.69 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01159/0.3544, allocations: 11.32 MB / 462.7 MB, free: 3.355 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009822/0.3643, allocations: 7.371 MB / 470.1 MB, free: 11.89 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003201/0.3675, allocations: 1.852 MB / 471.9 MB, free: 10.04 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004225/0.3718, allocations: 3.177 MB / 475.1 MB, free: 6.848 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000703/0.3725, allocations: 216 kB / 475.3 MB, free: 6.637 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002211/0.3747, allocations: 1.256 MB / 476.6 MB, free: 5.379 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002073/0.3768, allocations: 2.621 MB / 479.2 MB, free: 2.75 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002586/0.3794, allocations: 3.029 MB / 482.2 MB, free: 15.69 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008058/0.3875, allocations: 9.782 MB / 492 MB, free: 5.879 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.949e-06/0.3875, allocations: 0 / 492 MB, free: 5.879 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.3875, allocations: 0 / 492 MB, free: 5.879 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0002239/0.3877, allocations: 0 / 492 MB, free: 5.879 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.01412/0.4019, allocations: 6.565 MB / 498.6 MB, free: 15.23 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.18e-05/0.4019, allocations: 8.031 kB / 498.6 MB, free: 15.22 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002251/0.4042, allocations: 1.082 MB / 499.7 MB, free: 14.13 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05399/0.4582, allocations: 8.624 MB / 0.4964 GB, free: 5.484 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01056/0.4688, allocations: 5.411 MB / 0.5017 GB, free: 15.99 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002997/0.4691, allocations: 345 kB / 0.502 GB, free: 15.65 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001529/0.4706, allocations: 459.6 kB / 0.5024 GB, free: 15.2 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0241/0.4948, allocations: 14.49 MB / 0.5166 GB, free: 15.77 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001914/0.495, allocations: 79.22 kB / 0.5167 GB, free: 15.7 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000612/0.4956, allocations: 211.8 kB / 0.5169 GB, free: 15.49 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00497/0.5006, allocations: 2.828 MB / 0.5196 GB, free: 12.66 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1686/0.6692, allocations: 13.04 MB / 0.5324 GB, free: 139 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05875/0.7279, allocations: 58.28 MB / 0.5893 GB, free: 100.1 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01478/0.7428, allocations: 7.704 MB / 0.5968 GB, free: 94.7 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004419/0.7472, allocations: 5.004 MB / 0.6017 GB, free: 89.69 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01425/0.7615, allocations: 12.68 MB / 0.6141 GB, free: 76.95 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.824e-05/0.7616, allocations: 78.22 kB / 0.6141 GB, free: 76.87 MB / 446.1 MB Notification: Performance of pre-optimization done (n=326): time 5.501e-06/0.7616, allocations: 0 / 0.6141 GB, free: 76.87 MB / 446.1 MB Notification: Performance of matching and sorting (n=572): time 1.807/2.569, allocations: 407.1 MB / 1.012 GB, free: 33.2 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.143e-05/2.569, allocations: 261.7 kB / 1.012 GB, free: 32.89 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006966/2.576, allocations: 5.481 MB / 1.017 GB, free: 27.44 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001587/2.578, allocations: 113.7 kB / 1.017 GB, free: 27.32 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001794/2.58, allocations: 4.011 MB / 1.021 GB, free: 23.32 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002419/2.582, allocations: 2.004 MB / 1.023 GB, free: 21.34 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001959/2.584, allocations: 0.7745 MB / 1.024 GB, free: 20.55 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 3.521e-05/2.584, allocations: 305.1 kB / 1.024 GB, free: 20.25 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.1607/2.745, allocations: 10.88 MB / 1.035 GB, free: 141.6 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01593/2.761, allocations: 14.99 MB / 1.05 GB, free: 132.7 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02639/2.787, allocations: 27.13 MB / 1.076 GB, free: 117.3 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.087e-05/2.787, allocations: 35.72 kB / 1.076 GB, free: 117.3 MB / 462.1 MB Notification: Performance of matching and sorting (n=1202) (initialization): time 0.4684/3.256, allocations: 140.5 MB / 1.213 GB, free: 123.4 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001007/3.256, allocations: 64.28 kB / 1.213 GB, free: 123.4 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001394/3.256, allocations: 137.2 kB / 1.214 GB, free: 123.4 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.07282/3.329, allocations: 34.66 MB / 1.247 GB, free: 116.4 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004005/3.333, allocations: 1.483 MB / 1.249 GB, free: 116.2 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3737/3.706, allocations: 190.3 MB / 1.435 GB, free: 109.6 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01194/3.718, allocations: 1.706 MB / 1.436 GB, free: 108.6 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0017/3.72, allocations: 0.5211 MB / 1.437 GB, free: 108.1 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.005597/3.726, allocations: 3.094 MB / 1.44 GB, free: 105.6 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001553/3.727, allocations: 0.5827 MB / 1.44 GB, free: 105.3 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.4595/4.187, allocations: 136.5 MB / 1.574 GB, free: 130.7 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.126e-05/4.187, allocations: 56.73 kB / 1.574 GB, free: 130.7 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001096/4.187, allocations: 62 kB / 1.574 GB, free: 130.7 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.141e-05/4.187, allocations: 27.84 kB / 1.574 GB, free: 130.7 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.508/4.695, allocations: 206.3 MB / 1.775 GB, free: 109.1 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.6e-05/4.695, allocations: 8 kB / 1.775 GB, free: 109.1 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001385/4.697, allocations: 337.5 kB / 1.776 GB, free: 108.7 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0681/4.765, allocations: 33.78 MB / 1.809 GB, free: 79.66 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001211/4.766, allocations: 101 kB / 1.809 GB, free: 79.56 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3618/5.128, allocations: 173.2 MB / 1.978 GB, free: 80.09 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.672e-06/5.128, allocations: 13.5 kB / 1.978 GB, free: 80.08 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.4965/5.624, allocations: 152.3 MB / 2.127 GB, free: 98.54 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001384/5.626, allocations: 0.6321 MB / 2.127 GB, free: 98.25 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001704/5.628, allocations: 98.5 kB / 2.127 GB, free: 98.22 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008118/5.636, allocations: 1.487 MB / 2.129 GB, free: 96.8 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002974/5.639, allocations: 0.4884 MB / 2.129 GB, free: 96.38 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006573/5.639, allocations: 144.2 kB / 2.129 GB, free: 96.28 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003891/5.643, allocations: 3.521 MB / 2.133 GB, free: 93.75 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.4e-07/5.643, allocations: 0 / 2.133 GB, free: 93.75 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.01083/5.654, allocations: 3.78 MB / 2.137 GB, free: 90.29 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.4766/6.131, allocations: 152.8 MB / 2.286 GB, free: 109.7 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.0488/6.179, allocations: 33.53 MB / 2.319 GB, free: 79.59 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 8.736e-06/6.18, allocations: 3.938 kB / 2.319 GB, free: 79.59 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.03422/6.214, allocations: 20.49 MB / 2.339 GB, free: 59.16 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009426/6.223, allocations: 0.8021 MB / 2.339 GB, free: 58.38 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 1.014/7.237, allocations: 373.9 MB / 2.704 GB, free: 49.18 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004698/7.242, allocations: 5.096 MB / 2.709 GB, free: 44.1 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.004405/7.246, allocations: 2.066 MB / 2.711 GB, free: 42.16 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002788/7.249, allocations: 3.03 MB / 2.714 GB, free: 39.13 MB / 494.1 MB Notification: Performance of SimCode: time 9.52e-07/7.249, allocations: 0 / 2.714 GB, free: 39.13 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6961/7.945, allocations: 320.1 MB / 3.027 GB, free: 54.99 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001541/7.945, allocations: 233.8 kB / 3.027 GB, free: 54.74 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.406/14.35, allocations: 0 / 3.027 GB, free: 54.74 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