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.0009757/0.0009754, allocations: 93.59 kB / 16.65 MB, free: 6.586 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.0009847/0.0009848, allocations: 181.1 kB / 17.56 MB, free: 6.203 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.33/1.33, allocations: 223.3 MB / 241.6 MB, free: 212 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002827/0.0002828, allocations: 4 kB / 301.5 MB, free: 6.043 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1125/0.1128, allocations: 50.41 MB / 351.9 MB, free: 3.621 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.3051/0.4179, allocations: 73.51 MB / 425.4 MB, free: 10.75 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.03955/0.4575, allocations: 14.89 MB / 440.3 MB, free: 11.81 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01836/0.4759, allocations: 335.1 kB / 440.7 MB, free: 11.48 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002633/0.4786, allocations: 0.5984 MB / 441.3 MB, free: 10.88 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008145/0.4868, allocations: 2.371 MB / 443.6 MB, free: 8.5 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002893/0.4897, allocations: 1.065 MB / 444.7 MB, free: 7.434 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01442/0.5041, allocations: 11.19 MB / 455.9 MB, free: 12.22 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01253/0.5167, allocations: 7.364 MB / 463.3 MB, free: 4.766 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004427/0.5212, allocations: 1.863 MB / 465.1 MB, free: 2.895 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005455/0.5267, allocations: 3.177 MB / 468.3 MB, free: 15.71 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001386/0.5281, allocations: 216 kB / 468.5 MB, free: 15.5 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003389/0.5315, allocations: 1.275 MB / 469.8 MB, free: 14.22 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00368/0.5352, allocations: 2.641 MB / 472.4 MB, free: 11.57 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00563/0.5409, allocations: 3.053 MB / 475.5 MB, free: 8.492 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01143/0.5523, allocations: 9.833 MB / 485.3 MB, free: 14.62 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.29e-06/0.5523, allocations: 0 / 485.3 MB, free: 14.62 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.966e-06/0.5524, allocations: 0 / 485.3 MB, free: 14.62 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0003532/0.5527, allocations: 0 / 485.3 MB, free: 14.62 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.01775/0.5705, allocations: 6.538 MB / 491.8 MB, free: 8.004 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.621e-05/0.5705, allocations: 8.031 kB / 491.9 MB, free: 7.996 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004099/0.5746, allocations: 1.082 MB / 492.9 MB, free: 6.902 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05647/0.6311, allocations: 8.511 MB / 0.4897 GB, free: 14.37 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01208/0.6432, allocations: 5.731 MB / 0.4953 GB, free: 8.559 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003646/0.6436, allocations: 341.1 kB / 0.4956 GB, free: 8.223 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001835/0.6455, allocations: 471.5 kB / 0.4961 GB, free: 7.762 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03048/0.676, allocations: 14.49 MB / 0.5102 GB, free: 8.336 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004063/0.6765, allocations: 71.33 kB / 0.5103 GB, free: 8.266 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001882/0.6784, allocations: 211.8 kB / 0.5105 GB, free: 8.059 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005902/0.6843, allocations: 2.836 MB / 0.5133 GB, free: 5.211 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02889/0.7132, allocations: 13.03 MB / 0.526 GB, free: 8.156 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2782/0.9914, allocations: 58.28 MB / 0.5829 GB, free: 110 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01669/1.008, allocations: 7.695 MB / 0.5904 GB, free: 105.9 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005447/1.014, allocations: 5.012 MB / 0.5953 GB, free: 103 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01845/1.032, allocations: 12.69 MB / 0.6077 GB, free: 90.27 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.105e-05/1.032, allocations: 68.69 kB / 0.6078 GB, free: 90.2 MB / 446.1 MB Notification: Performance of pre-optimization done (n=326): time 6.251e-06/1.032, allocations: 4 kB / 0.6078 GB, free: 90.19 MB / 446.1 MB Notification: Performance of matching and sorting (n=572): time 2.004/3.036, allocations: 406.9 MB / 1.005 GB, free: 16.88 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001651/3.036, allocations: 269.6 kB / 1.005 GB, free: 16.57 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01162/3.048, allocations: 5.489 MB / 1.011 GB, free: 11.11 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.002639/3.051, allocations: 111 kB / 1.011 GB, free: 11 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003006/3.054, allocations: 4.016 MB / 1.015 GB, free: 6.988 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.004154/3.058, allocations: 2.001 MB / 1.017 GB, free: 5.004 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.2356/3.293, allocations: 0.7717 MB / 1.018 GB, free: 134.7 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.214e-05/3.294, allocations: 306.1 kB / 1.018 GB, free: 134.4 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01823/3.312, allocations: 10.88 MB / 1.028 GB, free: 131.3 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02069/3.333, allocations: 14.99 MB / 1.043 GB, free: 121.8 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.03166/3.364, allocations: 27.12 MB / 1.07 GB, free: 103.1 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001472/3.364, allocations: 40 kB / 1.07 GB, free: 103 MB / 446.1 MB Notification: Performance of matching and sorting (n=1202) (initialization): time 0.58/3.944, allocations: 140.4 MB / 1.207 GB, free: 129.3 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.568e-05/3.945, allocations: 66.22 kB / 1.207 GB, free: 129.3 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001802/3.945, allocations: 138.1 kB / 1.207 GB, free: 129.3 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.07987/4.025, allocations: 34.65 MB / 1.241 GB, free: 112 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004953/4.03, allocations: 1.476 MB / 1.242 GB, free: 110.7 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.5289/4.559, allocations: 190.3 MB / 1.428 GB, free: 85.67 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0145/4.573, allocations: 1.706 MB / 1.43 GB, free: 84.68 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002291/4.575, allocations: 0.5217 MB / 1.43 GB, free: 84.22 MB / 462.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.006987/4.582, allocations: 3.079 MB / 1.433 GB, free: 81.69 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00206/4.584, allocations: 0.5859 MB / 1.434 GB, free: 81.42 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.6044/5.189, allocations: 136.5 MB / 1.567 GB, free: 110.4 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.417e-05/5.189, allocations: 56.62 kB / 1.567 GB, free: 110.4 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001427/5.189, allocations: 57.69 kB / 1.567 GB, free: 110.4 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001207/5.189, allocations: 31.08 kB / 1.567 GB, free: 110.4 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.6004/5.79, allocations: 206.2 MB / 1.769 GB, free: 100.4 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.132e-05/5.79, allocations: 8 kB / 1.769 GB, free: 100.4 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001482/5.791, allocations: 332.6 kB / 1.769 GB, free: 100.1 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.07196/5.863, allocations: 33.77 MB / 1.802 GB, free: 71.39 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001631/5.865, allocations: 102.9 kB / 1.802 GB, free: 71.29 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4242/6.289, allocations: 173.2 MB / 1.971 GB, free: 68.89 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.985e-06/6.289, allocations: 7.188 kB / 1.971 GB, free: 68.88 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.5376/6.827, allocations: 152.2 MB / 2.12 GB, free: 83.56 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001897/6.829, allocations: 0.6286 MB / 2.12 GB, free: 83.27 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003007/6.832, allocations: 98.03 kB / 2.12 GB, free: 83.25 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01015/6.842, allocations: 1.486 MB / 2.122 GB, free: 81.83 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.004469/6.846, allocations: 0.4913 MB / 2.122 GB, free: 81.41 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001128/6.847, allocations: 144.8 kB / 2.122 GB, free: 81.3 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.004998/6.852, allocations: 3.52 MB / 2.126 GB, free: 78.78 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.5e-07/6.852, allocations: 0 / 2.126 GB, free: 78.78 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.01347/6.866, allocations: 3.798 MB / 2.13 GB, free: 75.3 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.5493/7.415, allocations: 152.7 MB / 2.279 GB, free: 92.95 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.05385/7.469, allocations: 33.52 MB / 2.312 GB, free: 61.25 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.119e-05/7.469, allocations: 0 / 2.312 GB, free: 61.25 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.03792/7.507, allocations: 20.48 MB / 2.332 GB, free: 40.79 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01238/7.52, allocations: 0.7858 MB / 2.332 GB, free: 40.03 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 1.408/8.928, allocations: 373.8 MB / 2.697 GB, free: 134 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007278/8.935, allocations: 5.095 MB / 2.702 GB, free: 133.1 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.006188/8.942, allocations: 2.068 MB / 2.704 GB, free: 133 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003454/8.945, allocations: 3.03 MB / 2.707 GB, free: 133 MB / 478.1 MB Notification: Performance of SimCode: time 1.473e-06/8.945, allocations: 0 / 2.707 GB, free: 133 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5955/9.541, allocations: 320.2 MB / 3.02 GB, free: 11.57 MB / 478.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.00018/9.541, allocations: 234.7 kB / 3.02 GB, free: 11.32 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.871/17.41, allocations: 0 / 3.02 GB, free: 11.32 MB / 478.1 MB (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