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.001771/0.001771, allocations: 122.2 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002119/0.002119, allocations: 197.2 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.461/1.461, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001853/0.001853, allocations: 63.91 kB / 358.2 MB, free: 13.39 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2986/0.3004, allocations: 50.54 MB / 408.8 MB, free: 1.527 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.01805/0.3185, allocations: 15.87 MB / 424.6 MB, free: 1.59 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01197/0.3305, allocations: 5.128 MB / 429.8 MB, free: 12.45 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003612/0.3342, allocations: 115.6 kB / 429.9 MB, free: 12.33 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009098/0.3433, allocations: 4.423 MB / 434.3 MB, free: 7.895 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007686/0.3511, allocations: 2.493 MB / 436.8 MB, free: 5.391 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003241/0.3543, allocations: 1.143 MB / 437.9 MB, free: 4.246 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01255/0.3669, allocations: 8.104 MB / 446 MB, free: 12.12 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007439/0.3744, allocations: 5.314 MB / 451.3 MB, free: 6.734 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004684/0.3791, allocations: 2.457 MB / 453.8 MB, free: 4.27 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005574/0.3847, allocations: 3.353 MB / 457.2 MB, free: 0.9062 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001519/0.3863, allocations: 0.5039 MB / 457.7 MB, free: 412 kB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003588/0.3899, allocations: 1.483 MB / 459.1 MB, free: 14.92 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004549/0.3944, allocations: 2.938 MB / 462.1 MB, free: 11.97 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006909/0.4014, allocations: 3.422 MB / 465.5 MB, free: 8.531 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01502/0.4164, allocations: 10.54 MB / 476 MB, free: 13.95 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.264e-05/0.4165, allocations: 3.984 kB / 476.1 MB, free: 13.95 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.645e-06/0.4165, allocations: 0 / 476.1 MB, free: 13.95 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0004628/0.417, allocations: 7.938 kB / 476.1 MB, free: 13.94 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.02183/0.4388, allocations: 8.102 MB / 484.2 MB, free: 5.738 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.145e-05/0.4389, allocations: 8.031 kB / 484.2 MB, free: 5.73 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002582/0.4415, allocations: 1.082 MB / 485.3 MB, free: 4.637 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05164/0.4931, allocations: 8.554 MB / 493.8 MB, free: 12.07 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01362/0.5068, allocations: 5.554 MB / 499.4 MB, free: 6.434 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003588/0.5072, allocations: 340.8 kB / 499.7 MB, free: 6.098 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001861/0.5091, allocations: 467.7 kB / 0.4884 GB, free: 5.641 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03001/0.5391, allocations: 14.47 MB / 0.5026 GB, free: 6.242 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002806/0.5394, allocations: 71.48 kB / 0.5026 GB, free: 6.172 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001065/0.5405, allocations: 207.8 kB / 0.5028 GB, free: 5.969 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006109/0.5466, allocations: 2.844 MB / 0.5056 GB, free: 3.117 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03029/0.5769, allocations: 13 MB / 0.5183 GB, free: 6.09 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3102/0.8872, allocations: 58.13 MB / 0.5751 GB, free: 82.81 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01574/0.903, allocations: 7.676 MB / 0.5826 GB, free: 80.05 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005261/0.9083, allocations: 5.013 MB / 0.5875 GB, free: 77.52 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01722/0.9255, allocations: 12.69 MB / 0.5998 GB, free: 67.82 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.431e-05/0.9256, allocations: 72.62 kB / 0.5999 GB, free: 67.74 MB / 462.1 MB Notification: Performance of pre-optimization done (n=326): time 6.272e-06/0.9256, allocations: 0 / 0.5999 GB, free: 67.74 MB / 462.1 MB Notification: Performance of matching and sorting (n=572): time 2.025/2.95, allocations: 411.7 MB / 1.002 GB, free: 143.2 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.86e-05/2.95, allocations: 265.7 kB / 1.002 GB, free: 142.9 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006904/2.957, allocations: 5.498 MB / 1.008 GB, free: 137.7 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.001791/2.959, allocations: 119.2 kB / 1.008 GB, free: 137.6 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002179/2.961, allocations: 4.151 MB / 1.012 GB, free: 134.5 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.002517/2.964, allocations: 2.094 MB / 1.014 GB, free: 132.4 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004571/2.968, allocations: 2.088 MB / 1.016 GB, free: 130.3 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 4.773e-05/2.968, allocations: 301.1 kB / 1.016 GB, free: 130.1 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01394/2.982, allocations: 10.88 MB / 1.027 GB, free: 119.2 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01511/2.998, allocations: 14.98 MB / 1.041 GB, free: 102.3 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02883/3.026, allocations: 27.14 MB / 1.068 GB, free: 73.38 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001148/3.027, allocations: 36 kB / 1.068 GB, free: 73.34 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1202) (initialization): time 0.5535/3.58, allocations: 140.5 MB / 1.205 GB, free: 125.1 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001063/3.58, allocations: 67.98 kB / 1.205 GB, free: 125.1 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001687/3.581, allocations: 140 kB / 1.205 GB, free: 124.9 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.07385/3.654, allocations: 34.58 MB / 1.239 GB, free: 90.75 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00477/3.659, allocations: 1.483 MB / 1.241 GB, free: 89.39 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.522/4.181, allocations: 203.2 MB / 1.439 GB, free: 86.39 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01322/4.194, allocations: 1.703 MB / 1.441 GB, free: 84.7 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002569/4.197, allocations: 0.5265 MB / 1.441 GB, free: 84.18 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.00708/4.204, allocations: 3.085 MB / 1.444 GB, free: 81.31 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002294/4.206, allocations: 0.6116 MB / 1.445 GB, free: 80.96 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.5949/4.801, allocations: 136.5 MB / 1.578 GB, free: 141.2 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.179e-05/4.802, allocations: 56 kB / 1.578 GB, free: 141.1 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001679/4.802, allocations: 57.12 kB / 1.578 GB, free: 141.1 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001243/4.802, allocations: 27.91 kB / 1.578 GB, free: 141.1 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.6055/5.407, allocations: 206 MB / 1.779 GB, free: 154 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.408e-05/5.408, allocations: 3.969 kB / 1.779 GB, free: 154 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001508/5.409, allocations: 330 kB / 1.78 GB, free: 154 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.06804/5.477, allocations: 33.29 MB / 1.812 GB, free: 130 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002215/5.479, allocations: 104.9 kB / 1.812 GB, free: 129.9 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.5206/6, allocations: 185.9 MB / 1.994 GB, free: 142.2 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.268e-06/6, allocations: 7.094 kB / 1.994 GB, free: 142.2 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.5979/6.598, allocations: 152.4 MB / 2.143 GB, free: 154.7 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001992/6.6, allocations: 0.6573 MB / 2.143 GB, free: 154.6 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002839/6.603, allocations: 102.9 kB / 2.143 GB, free: 154.6 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009399/6.612, allocations: 1.48 MB / 2.145 GB, free: 154.6 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003926/6.616, allocations: 0.4918 MB / 2.145 GB, free: 154.6 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001038/6.617, allocations: 142.6 kB / 2.146 GB, free: 154.6 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.005156/6.622, allocations: 3.52 MB / 2.149 GB, free: 153.5 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.51e-07/6.622, allocations: 0 / 2.149 GB, free: 153.5 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0135/6.636, allocations: 3.778 MB / 2.153 GB, free: 153.2 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.3072/6.943, allocations: 152.9 MB / 2.302 GB, free: 32.61 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.3042/7.247, allocations: 33.67 MB / 2.335 GB, free: 177.8 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.241e-05/7.248, allocations: 0 / 2.335 GB, free: 177.8 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.03787/7.285, allocations: 20.57 MB / 2.355 GB, free: 176.9 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00804/7.294, allocations: 0.8318 MB / 2.356 GB, free: 176.8 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.9986/8.292, allocations: 353.5 MB / 2.701 GB, free: 24.05 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01003/8.302, allocations: 5.09 MB / 2.706 GB, free: 18.95 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.004798/8.307, allocations: 2.064 MB / 2.708 GB, free: 16.88 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004224/8.311, allocations: 3.022 MB / 2.711 GB, free: 13.86 MB / 0.545 GB Notification: Performance of SimCode: time 1.182e-06/8.311, allocations: 4 kB / 2.711 GB, free: 13.85 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9535/9.265, allocations: 334.1 MB / 3.037 GB, free: 81.71 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 29.94/39.21, allocations: 14.38 kB / 3.037 GB, free: 81.71 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 & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 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.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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