Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.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.PlanarFourbar,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarFourbar",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarFourbar",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.001095/0.001096, allocations: 103 kB / 17.58 MB, free: 5.426 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.001155/0.001155, allocations: 192.2 kB / 18.51 MB, free: 4.508 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.367/1.367, allocations: 205.1 MB / 224.4 MB, free: 12.3 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.001168/0.001168, allocations: 51.92 kB / 280.8 MB, free: 3.074 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07948/0.08065, allocations: 46.63 MB / 327.4 MB, free: 4.375 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.01718/0.09786, allocations: 18.57 MB / 346 MB, free: 1.711 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01198/0.1099, allocations: 6.146 MB / 352.1 MB, free: 11.55 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003259/0.1132, allocations: 143.6 kB / 352.2 MB, free: 11.41 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01026/0.1235, allocations: 6.274 MB / 358.5 MB, free: 5.113 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007057/0.1306, allocations: 2.856 MB / 361.4 MB, free: 2.246 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004276/0.1349, allocations: 2.277 MB / 363.7 MB, free: 15.96 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01039/0.1453, allocations: 8.831 MB / 372.5 MB, free: 7.109 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1739/0.3193, allocations: 8.45 MB / 380.9 MB, free: 16.24 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006702/0.326, allocations: 3.198 MB / 384.1 MB, free: 16.14 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007634/0.3337, allocations: 4.181 MB / 388.3 MB, free: 15.78 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002347/0.3361, allocations: 0.7147 MB / 389 MB, free: 15.78 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00437/0.3405, allocations: 1.898 MB / 390.9 MB, free: 15.78 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004217/0.3447, allocations: 3.807 MB / 394.7 MB, free: 15.44 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005177/0.3499, allocations: 4.445 MB / 399.2 MB, free: 13.98 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01107/0.361, allocations: 13.63 MB / 412.8 MB, free: 6.844 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.071e-06/0.361, allocations: 0 / 412.8 MB, free: 6.844 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.605e-06/0.361, allocations: 1.938 kB / 412.8 MB, free: 6.844 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0003722/0.3614, allocations: 0 / 412.8 MB, free: 6.844 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2349 * Number of variables: 2349 Notification: Performance of Generate backend data structure: time 0.02724/0.3886, allocations: 9.485 MB / 422.3 MB, free: 0.6641 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.451e-05/0.3887, allocations: 10.44 kB / 422.3 MB, free: 0.6641 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003536/0.3922, allocations: 1.157 MB / 423.5 MB, free: 0 / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.3267/0.719, allocations: 23.24 MB / 446.7 MB, free: 9.414 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02086/0.7399, allocations: 8.487 MB / 455.2 MB, free: 1.199 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004499/0.7404, allocations: 436.9 kB / 455.6 MB, free: 0.8164 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002706/0.7431, allocations: 0.5784 MB / 456.2 MB, free: 288 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03625/0.7793, allocations: 16.87 MB / 473.1 MB, free: 14.71 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003989/0.7798, allocations: 79.8 kB / 473.1 MB, free: 14.66 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002182/0.782, allocations: 270.6 kB / 473.4 MB, free: 14.44 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004764/0.7868, allocations: 2.652 MB / 476 MB, free: 11.82 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03021/0.817, allocations: 14.4 MB / 490.4 MB, free: 13.65 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2593/1.076, allocations: 64.12 MB / 0.5416 GB, free: 141.9 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02403/1.1, allocations: 8.625 MB / 0.55 GB, free: 141.3 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005145/1.106, allocations: 4.922 MB / 0.5548 GB, free: 141.2 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02341/1.129, allocations: 18.14 MB / 0.5725 GB, free: 133.3 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.078e-05/1.129, allocations: 74.58 kB / 0.5726 GB, free: 133.3 MB / 446.1 MB Notification: Performance of pre-optimization done (n=281): time 4.889e-06/1.129, allocations: 3.375 kB / 0.5726 GB, free: 133.3 MB / 446.1 MB Notification: Performance of matching and sorting (n=374): time 0.2424/1.371, allocations: 72.99 MB / 0.6439 GB, free: 70.29 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.982e-05/1.372, allocations: 372.6 kB / 0.6442 GB, free: 69.85 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007548/1.379, allocations: 6.488 MB / 0.6506 GB, free: 63.36 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007774/1.38, allocations: 85.7 kB / 0.6506 GB, free: 63.27 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001968/1.382, allocations: 4.861 MB / 0.6554 GB, free: 58.41 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001162/1.383, allocations: 1.367 MB / 0.6567 GB, free: 57.05 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002212/1.385, allocations: 1.834 MB / 0.6585 GB, free: 55.21 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.323e-05/1.385, allocations: 305.1 kB / 0.6588 GB, free: 54.91 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005579/1.391, allocations: 5.655 MB / 0.6643 GB, free: 49.24 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007044/1.398, allocations: 10.61 MB / 0.6747 GB, free: 36.27 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01447/1.413, allocations: 17.35 MB / 0.6916 GB, free: 16.59 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.57e-05/1.413, allocations: 48 kB / 0.6917 GB, free: 16.54 MB / 446.1 MB Notification: Performance of matching and sorting (n=1157) (initialization): time 0.1973/1.61, allocations: 21.97 MB / 0.7131 GB, free: 136.1 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001401/1.61, allocations: 79.81 kB / 0.7132 GB, free: 136.1 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002263/1.61, allocations: 179.4 kB / 0.7134 GB, free: 136.1 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01979/1.63, allocations: 6.873 MB / 0.7201 GB, free: 135 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006751/1.637, allocations: 2.072 MB / 0.7221 GB, free: 134.8 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04085/1.678, allocations: 36.42 MB / 0.7577 GB, free: 108.9 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008371/1.686, allocations: 0.7227 MB / 0.7584 GB, free: 108.2 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001406/1.688, allocations: 0.5096 MB / 0.7589 GB, free: 107.7 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 779 * Number of states: 0 () * Number of discrete variables: 51 (sensorJoint4.arrowColor[3],sensorJoint4.arrowColor[2],sensorJoint4.arrowColor[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],body4.color[3],body4.color[2],body4.color[1],body4.body.sphereColor[3],body4.body.sphereColor[2],body4.body.sphereColor[1],body3.color[3],body3.color[2],body3.color[1],body3.body.sphereColor[3],body3.body.sphereColor[2],body3.body.sphereColor[1],body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.body.sphereColor[1],revolute4cut.cylinderColor[3],revolute4cut.cylinderColor[2],revolute4cut.cylinderColor[1],revolute3.cylinderColor[3],revolute3.cylinderColor[2],revolute3.cylinderColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1015): * Single equations (assignments): 1008 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(5,68,84.0%), (2,18,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,24)} Notification: Performance of prepare postOptimizeDAE: time 0.005829/1.693, allocations: 3.431 MB / 0.7622 GB, free: 104.4 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001604/1.695, allocations: 0.593 MB / 0.7628 GB, free: 104.1 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02865/1.724, allocations: 16.1 MB / 0.7785 GB, free: 87.95 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.591e-05/1.724, allocations: 53.33 kB / 0.7786 GB, free: 87.9 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.881e-05/1.724, allocations: 16 kB / 0.7786 GB, free: 87.89 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.538e-05/1.724, allocations: 19.94 kB / 0.7786 GB, free: 87.87 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04758/1.772, allocations: 31.43 MB / 0.8093 GB, free: 56.11 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.729e-05/1.772, allocations: 4 kB / 0.8093 GB, free: 56.1 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002973/1.775, allocations: 0.6044 MB / 0.8099 GB, free: 55.5 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0178/1.792, allocations: 6.457 MB / 0.8162 GB, free: 49.02 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006255/1.793, allocations: 67.94 kB / 0.8163 GB, free: 48.96 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03801/1.831, allocations: 34.62 MB / 0.8501 GB, free: 14.04 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.879e-06/1.831, allocations: 7.938 kB / 0.8501 GB, free: 14.03 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2095/2.041, allocations: 23.54 MB / 0.8731 GB, free: 130.5 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004112/2.045, allocations: 1.634 MB / 0.8747 GB, free: 129.9 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001536/2.046, allocations: 60.25 kB / 0.8747 GB, free: 129.9 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004495/2.051, allocations: 426.8 kB / 0.8751 GB, free: 129.9 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001083/2.052, allocations: 256.1 kB / 0.8754 GB, free: 129.8 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003317/2.052, allocations: 93.8 kB / 0.8755 GB, free: 129.8 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.005862/2.058, allocations: 4.16 MB / 0.8795 GB, free: 128.4 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.91e-07/2.058, allocations: 0 / 0.8795 GB, free: 128.4 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.007994/2.066, allocations: 2.202 MB / 0.8817 GB, free: 128.2 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 2 (revolute1.phi,revolute1.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 (243): * Single equations (assignments): 236 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(5,62,84.0%), (2,15,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,28)} Notification: Performance of Backend phase and start with SimCode phase: time 0.03472/2.101, allocations: 24.32 MB / 0.9054 GB, free: 118.1 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0275/2.128, allocations: 19.46 MB / 0.9244 GB, free: 100.1 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 8.316e-06/2.128, allocations: 4 kB / 0.9244 GB, free: 100.1 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.008983/2.137, allocations: 6.562 MB / 0.9309 GB, free: 93.5 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005711/2.143, allocations: 0.9529 MB / 0.9318 GB, free: 92.61 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3169/2.46, allocations: 121.8 MB / 1.051 GB, free: 148.3 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007427/2.468, allocations: 5.276 MB / 1.056 GB, free: 146.5 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.007803/2.475, allocations: 3.038 MB / 1.059 GB, free: 146.5 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004631/2.48, allocations: 3.402 MB / 1.062 GB, free: 143.7 MB / 462.1 MB Notification: Performance of SimCode: time 1.232e-06/2.48, allocations: 0 / 1.062 GB, free: 143.7 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3695/2.85, allocations: 172.3 MB / 1.23 GB, free: 131.1 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.61/17.46, allocations: 3.984 kB / 1.23 GB, free: 131.1 MB / 462.1 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarFourbar_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarFourbar.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Loops/PlanarFourbar/PlanarFourbar.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches