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.00108/0.001079, allocations: 121.7 kB / 17.79 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001149/0.001149, allocations: 199.8 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.375/1.375, allocations: 227.4 MB / 246.9 MB, free: 10.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001262/0.001262, allocations: 63.89 kB / 358.2 MB, free: 13.44 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2715/0.2728, allocations: 50.54 MB / 408.8 MB, free: 1.551 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.016/0.2888, allocations: 15.86 MB / 424.6 MB, free: 1.617 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01146/0.3003, allocations: 5.129 MB / 429.8 MB, free: 12.47 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002848/0.3032, allocations: 111.6 kB / 429.9 MB, free: 12.36 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008375/0.3116, allocations: 4.427 MB / 434.3 MB, free: 7.922 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00664/0.3183, allocations: 2.497 MB / 436.8 MB, free: 5.418 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002627/0.321, allocations: 1.147 MB / 437.9 MB, free: 4.27 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01212/0.3331, allocations: 8.1 MB / 446 MB, free: 12.15 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008768/0.3419, allocations: 5.311 MB / 451.3 MB, free: 6.762 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00448/0.3464, allocations: 2.465 MB / 453.8 MB, free: 4.289 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005279/0.3517, allocations: 3.365 MB / 457.2 MB, free: 0.9141 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001765/0.3535, allocations: 0.5039 MB / 457.7 MB, free: 420 kB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00395/0.3575, allocations: 1.487 MB / 459.2 MB, free: 14.92 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004318/0.3618, allocations: 2.981 MB / 462.1 MB, free: 11.93 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006501/0.3683, allocations: 3.418 MB / 465.6 MB, free: 8.496 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01355/0.3819, allocations: 10.5 MB / 476.1 MB, free: 13.96 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.153e-06/0.3819, allocations: 3.938 kB / 476.1 MB, free: 13.95 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.3819, allocations: 0 / 476.1 MB, free: 13.95 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0003743/0.3823, allocations: 0 / 476.1 MB, free: 13.95 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.0227/0.405, allocations: 7.906 MB / 484 MB, free: 5.961 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.655e-05/0.4051, allocations: 8.031 kB / 484 MB, free: 5.953 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002856/0.408, allocations: 1.086 MB / 485.1 MB, free: 4.855 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05838/0.4664, allocations: 8.519 MB / 493.6 MB, free: 12.32 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01399/0.4804, allocations: 5.516 MB / 499.1 MB, free: 6.719 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003568/0.4808, allocations: 348.8 kB / 499.4 MB, free: 6.375 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001834/0.4826, allocations: 471.5 kB / 499.9 MB, free: 5.914 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02897/0.5116, allocations: 14.46 MB / 0.5023 GB, free: 6.52 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002416/0.5119, allocations: 67.42 kB / 0.5024 GB, free: 6.453 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009079/0.5128, allocations: 219.8 kB / 0.5026 GB, free: 6.238 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005456/0.5182, allocations: 2.832 MB / 0.5054 GB, free: 3.398 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02519/0.5434, allocations: 13.01 MB / 0.5181 GB, free: 6.355 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.288/0.8315, allocations: 58.03 MB / 0.5747 GB, free: 83.29 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01552/0.8471, allocations: 7.677 MB / 0.5822 GB, free: 80.62 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004575/0.8517, allocations: 5.011 MB / 0.5871 GB, free: 78.09 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01751/0.8692, allocations: 12.68 MB / 0.5995 GB, free: 68.51 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.846e-05/0.8693, allocations: 64.7 kB / 0.5996 GB, free: 68.44 MB / 462.1 MB Notification: Performance of pre-optimization done (n=326): time 6.663e-06/0.8693, allocations: 0 / 0.5996 GB, free: 68.44 MB / 462.1 MB Notification: Performance of matching and sorting (n=572): time 2.069/2.939, allocations: 411.4 MB / 1.001 GB, free: 144.2 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.301e-05/2.939, allocations: 264.4 kB / 1.002 GB, free: 143.9 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006227/2.945, allocations: 5.498 MB / 1.007 GB, free: 138.6 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.001482/2.947, allocations: 112.2 kB / 1.007 GB, free: 138.5 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.001677/2.948, allocations: 4.009 MB / 1.011 GB, free: 135.1 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.002121/2.95, allocations: 2.004 MB / 1.013 GB, free: 133.1 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003634/2.954, allocations: 2.068 MB / 1.015 GB, free: 131 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 4.099e-05/2.954, allocations: 301.1 kB / 1.015 GB, free: 130.7 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01178/2.966, allocations: 10.87 MB / 1.026 GB, free: 119.8 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01517/2.981, allocations: 14.99 MB / 1.04 GB, free: 103 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02799/3.009, allocations: 27.13 MB / 1.067 GB, free: 74.02 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.758e-05/3.009, allocations: 40 kB / 1.067 GB, free: 73.98 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1202) (initialization): time 0.5553/3.565, allocations: 140.5 MB / 1.204 GB, free: 126.2 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 8.506e-05/3.565, allocations: 66.66 kB / 1.204 GB, free: 126.1 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001349/3.565, allocations: 139.6 kB / 1.204 GB, free: 126 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.07708/3.642, allocations: 34.59 MB / 1.238 GB, free: 91.84 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004544/3.646, allocations: 1.482 MB / 1.24 GB, free: 90.49 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.5057/4.152, allocations: 203.1 MB / 1.438 GB, free: 87.21 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01483/4.167, allocations: 1.711 MB / 1.44 GB, free: 85.86 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002856/4.17, allocations: 0.527 MB / 1.44 GB, free: 85.34 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.007387/4.177, allocations: 3.089 MB / 1.443 GB, free: 82.38 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002/4.179, allocations: 0.579 MB / 1.444 GB, free: 81.99 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.5348/4.714, allocations: 136.5 MB / 1.577 GB, free: 142.1 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.617e-05/4.714, allocations: 56.81 kB / 1.577 GB, free: 142.1 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001265/4.715, allocations: 59.66 kB / 1.577 GB, free: 142.1 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001039/4.715, allocations: 30.52 kB / 1.577 GB, free: 142.1 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5936/5.308, allocations: 206 MB / 1.778 GB, free: 154.8 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.396e-05/5.308, allocations: 7.75 kB / 1.778 GB, free: 154.8 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001523/5.31, allocations: 332.2 kB / 1.779 GB, free: 154.7 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0711/5.381, allocations: 33.29 MB / 1.811 GB, free: 131.2 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001534/5.383, allocations: 96 kB / 1.811 GB, free: 131.1 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4598/5.842, allocations: 185.8 MB / 1.993 GB, free: 143.4 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.265e-06/5.842, allocations: 8 kB / 1.993 GB, free: 143.4 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.5425/6.385, allocations: 152.3 MB / 2.142 GB, free: 155 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001698/6.387, allocations: 0.6242 MB / 2.142 GB, free: 154.9 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002495/6.389, allocations: 96.34 kB / 2.142 GB, free: 154.9 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009315/6.399, allocations: 1.485 MB / 2.144 GB, free: 154.9 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00348/6.402, allocations: 0.4919 MB / 2.144 GB, free: 154.9 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008952/6.403, allocations: 140.1 kB / 2.144 GB, free: 154.9 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.004569/6.408, allocations: 3.52 MB / 2.148 GB, free: 154.2 MB / 0.545 GB Notification: Performance of sort global known variables: time 4.41e-07/6.408, allocations: 0 / 2.148 GB, free: 154.2 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.01224/6.42, allocations: 3.781 MB / 2.151 GB, free: 153.9 MB / 0.545 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.3248/6.745, allocations: 152.8 MB / 2.301 GB, free: 33.72 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.2685/7.013, allocations: 33.65 MB / 2.334 GB, free: 178.4 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.112e-05/7.013, allocations: 3.812 kB / 2.334 GB, free: 178.4 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.03726/7.05, allocations: 20.53 MB / 2.354 GB, free: 177.5 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00588/7.056, allocations: 0.8316 MB / 2.354 GB, free: 177.4 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.9249/7.981, allocations: 353.2 MB / 2.699 GB, free: 25.37 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006548/7.988, allocations: 5.097 MB / 2.704 GB, free: 20.27 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.004678/7.993, allocations: 2.061 MB / 2.706 GB, free: 18.2 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003394/7.996, allocations: 3.025 MB / 2.709 GB, free: 15.18 MB / 0.545 GB Notification: Performance of SimCode: time 9.82e-07/7.996, allocations: 0 / 2.709 GB, free: 15.18 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7482/8.744, allocations: 341.4 MB / 3.043 GB, free: 76.11 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 29/37.75, allocations: 18.86 kB / 3.043 GB, free: 76.1 MB / 0.545 GB (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