Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1,fileNamePrefix="Modelica_3_2_3_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.000847/0.0008471, allocations: 91.36 kB / 17.3 MB, free: 6.336 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.0009578/0.0009579, allocations: 178 kB / 18.21 MB, free: 5.52 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.336/1.336, allocations: 205.4 MB / 224.4 MB, free: 13.07 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004551/0.0004553, allocations: 19.98 kB / 281.5 MB, free: 3.309 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1014/0.1018, allocations: 47.58 MB / 329.1 MB, free: 3.66 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.2609/0.3628, allocations: 73.6 MB / 402.7 MB, free: 8.73 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.03508/0.3979, allocations: 14.91 MB / 417.6 MB, free: 3.75 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01699/0.415, allocations: 338.6 kB / 417.9 MB, free: 3.691 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002438/0.4174, allocations: 0.5976 MB / 418.5 MB, free: 3.223 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00761/0.4251, allocations: 2.404 MB / 420.9 MB, free: 1.785 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002881/0.428, allocations: 1.068 MB / 422 MB, free: 1.129 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01436/0.4424, allocations: 10.5 MB / 432.5 MB, free: 10.8 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01284/0.4552, allocations: 7.39 MB / 439.9 MB, free: 3.871 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004556/0.4598, allocations: 1.879 MB / 441.7 MB, free: 2.062 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005744/0.4656, allocations: 3.192 MB / 444.9 MB, free: 15.07 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001297/0.4669, allocations: 216 kB / 445.1 MB, free: 14.86 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003632/0.4706, allocations: 1.264 MB / 446.4 MB, free: 13.63 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003351/0.4739, allocations: 2.658 MB / 449.1 MB, free: 10.98 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005336/0.4793, allocations: 3.072 MB / 452.1 MB, free: 7.902 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01148/0.4908, allocations: 9.874 MB / 462 MB, free: 14.27 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.4908, allocations: 0 / 462 MB, free: 14.27 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.265e-06/0.4908, allocations: 0 / 462 MB, free: 14.27 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0003467/0.4912, allocations: 0 / 462 MB, free: 14.27 MB / 366.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.0167/0.5079, allocations: 6.578 MB / 468.6 MB, free: 7.645 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.249e-05/0.508, allocations: 8.031 kB / 468.6 MB, free: 7.637 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003077/0.511, allocations: 1.081 MB / 469.7 MB, free: 6.59 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05443/0.5655, allocations: 8.511 MB / 478.2 MB, free: 14.06 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01247/0.578, allocations: 6.23 MB / 484.4 MB, free: 7.84 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002955/0.5783, allocations: 336.7 kB / 484.8 MB, free: 7.555 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001601/0.5799, allocations: 471.2 kB / 485.2 MB, free: 7.141 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02841/0.6084, allocations: 14.49 MB / 499.7 MB, free: 7.852 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002257/0.6086, allocations: 71.34 kB / 499.8 MB, free: 7.781 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006225/0.6093, allocations: 210.5 kB / 500 MB, free: 7.621 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005196/0.6145, allocations: 2.844 MB / 0.491 GB, free: 4.781 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02527/0.6398, allocations: 13.04 MB / 0.5038 GB, free: 7.727 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2502/0.89, allocations: 58.32 MB / 0.5607 GB, free: 129.4 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01723/0.9073, allocations: 7.699 MB / 0.5682 GB, free: 128.6 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004857/0.9122, allocations: 5.007 MB / 0.5731 GB, free: 126.6 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01507/0.9272, allocations: 12.7 MB / 0.5855 GB, free: 120.7 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.458e-05/0.9273, allocations: 67.45 kB / 0.5856 GB, free: 120.6 MB / 446.1 MB Notification: Performance of pre-optimization done (n=326): time 5.43e-06/0.9273, allocations: 0 / 0.5856 GB, free: 120.6 MB / 446.1 MB Notification: Performance of matching and sorting (n=572): time 1.907/2.835, allocations: 407.1 MB / 0.9832 GB, free: 57.43 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.494e-05/2.835, allocations: 269.6 kB / 0.9835 GB, free: 57.11 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006407/2.841, allocations: 5.544 MB / 0.9889 GB, free: 51.76 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001624/2.843, allocations: 113.7 kB / 0.989 GB, free: 51.64 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00184/2.845, allocations: 4.016 MB / 0.9929 GB, free: 48.31 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002356/2.847, allocations: 2.008 MB / 0.9949 GB, free: 46.32 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001465/2.849, allocations: 0.7691 MB / 0.9956 GB, free: 45.54 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.95e-05/2.849, allocations: 304.8 kB / 0.9959 GB, free: 45.24 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01269/2.861, allocations: 10.88 MB / 1.007 GB, free: 34.35 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1935/3.055, allocations: 14.99 MB / 1.021 GB, free: 139.8 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.03468/3.09, allocations: 27.12 MB / 1.048 GB, free: 126 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001801/3.09, allocations: 38.88 kB / 1.048 GB, free: 126 MB / 446.1 MB Notification: Performance of matching and sorting (n=1202) (initialization): time 0.4815/3.572, allocations: 140.4 MB / 1.185 GB, free: 130.3 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000168/3.572, allocations: 64.5 kB / 1.185 GB, free: 130.3 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002283/3.572, allocations: 136.7 kB / 1.185 GB, free: 130.3 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.07802/3.65, allocations: 34.64 MB / 1.219 GB, free: 124.4 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004698/3.655, allocations: 1.478 MB / 1.22 GB, free: 124.3 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3941/4.049, allocations: 190.3 MB / 1.406 GB, free: 93.59 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01185/4.061, allocations: 1.71 MB / 1.408 GB, free: 92.59 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001346/4.062, allocations: 0.5174 MB / 1.408 GB, free: 92.13 MB / 446.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.005852/4.068, allocations: 3.092 MB / 1.411 GB, free: 89.54 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001559/4.07, allocations: 0.595 MB / 1.412 GB, free: 89.27 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.4752/4.545, allocations: 136.4 MB / 1.545 GB, free: 110.9 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.089e-05/4.545, allocations: 57.53 kB / 1.545 GB, free: 110.9 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001475/4.545, allocations: 62.72 kB / 1.545 GB, free: 110.9 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001151/4.545, allocations: 23.91 kB / 1.545 GB, free: 110.8 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5014/5.046, allocations: 206.2 MB / 1.747 GB, free: 99.53 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.852e-05/5.047, allocations: 8 kB / 1.747 GB, free: 99.52 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001401/5.048, allocations: 331.7 kB / 1.747 GB, free: 99.21 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.06909/5.117, allocations: 33.77 MB / 1.78 GB, free: 70.42 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001893/5.119, allocations: 100 kB / 1.78 GB, free: 70.32 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3621/5.481, allocations: 173.2 MB / 1.949 GB, free: 61.55 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.863e-06/5.481, allocations: 12.27 kB / 1.949 GB, free: 61.54 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.4635/5.945, allocations: 152.2 MB / 2.098 GB, free: 71.39 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00496/5.95, allocations: 3.009 MB / 2.101 GB, free: 68.68 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001275/5.951, allocations: 101.5 kB / 2.101 GB, free: 68.58 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007638/5.959, allocations: 1.487 MB / 2.102 GB, free: 67.09 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002927/5.962, allocations: 497.8 kB / 2.103 GB, free: 66.61 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006535/5.962, allocations: 140 kB / 2.103 GB, free: 66.48 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003723/5.966, allocations: 3.561 MB / 2.106 GB, free: 62.94 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.51e-07/5.966, allocations: 0 / 2.106 GB, free: 62.94 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.01074/5.977, allocations: 3.8 MB / 2.11 GB, free: 59.14 MB / 462.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.4602/6.437, allocations: 152.8 MB / 2.259 GB, free: 71.24 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.04624/6.483, allocations: 33.52 MB / 2.292 GB, free: 37.87 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.892e-06/6.483, allocations: 4 kB / 2.292 GB, free: 37.86 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.1856/6.669, allocations: 20.48 MB / 2.312 GB, free: 137.9 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009875/6.679, allocations: 0.7926 MB / 2.313 GB, free: 137.9 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 1.052/7.73, allocations: 374.4 MB / 2.678 GB, free: 118.9 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004583/7.735, allocations: 5.128 MB / 2.683 GB, free: 116.8 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.00422/7.739, allocations: 2.064 MB / 2.685 GB, free: 115.9 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002524/7.742, allocations: 3.036 MB / 2.688 GB, free: 115.7 MB / 462.1 MB Notification: Performance of SimCode: time 9.62e-07/7.742, allocations: 0 / 2.688 GB, free: 115.7 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.648/10.39, allocations: 320.7 MB / 3.002 GB, free: 129 MB / 478.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001467/10.39, allocations: 239.1 kB / 3.002 GB, free: 128.7 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.236/17.63, allocations: 0 / 3.002 GB, free: 128.7 MB / 478.1 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar1/Fourbar1.csv","../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches