Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.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.PlanarFourbar,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarFourbar",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001257/0.001257, allocations: 122.8 kB / 17.78 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001273/0.001273, allocations: 198 kB / 18.73 MB, free: 4.316 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.373/1.373, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00126/0.00126, allocations: 63.89 kB / 358.2 MB, free: 13.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2666/0.2679, allocations: 50.54 MB / 408.8 MB, free: 1.543 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.02078/0.2887, allocations: 18.02 MB / 426.8 MB, free: 15.44 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01522/0.304, allocations: 6.053 MB / 432.8 MB, free: 9.371 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005628/0.3097, allocations: 143.6 kB / 433 MB, free: 9.23 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0124/0.3222, allocations: 6.242 MB / 439.2 MB, free: 2.969 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007942/0.3301, allocations: 2.813 MB / 442 MB, free: 148 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005388/0.3356, allocations: 2.273 MB / 444.3 MB, free: 13.87 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01397/0.3495, allocations: 9.685 MB / 454 MB, free: 4.164 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01265/0.3622, allocations: 8.415 MB / 462.4 MB, free: 11.65 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006421/0.3687, allocations: 3.21 MB / 465.6 MB, free: 8.43 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007737/0.3765, allocations: 4.16 MB / 469.8 MB, free: 4.258 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003451/0.38, allocations: 0.7148 MB / 470.5 MB, free: 3.543 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005357/0.3854, allocations: 1.896 MB / 472.4 MB, free: 1.645 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005621/0.391, allocations: 3.807 MB / 476.2 MB, free: 13.83 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008107/0.3991, allocations: 4.403 MB / 480.6 MB, free: 9.402 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01754/0.4167, allocations: 13.83 MB / 494.4 MB, free: 11.53 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.841e-06/0.4167, allocations: 0 / 494.4 MB, free: 11.53 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.664e-06/0.4167, allocations: 0 / 494.4 MB, free: 11.53 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0004896/0.4172, allocations: 0 / 494.4 MB, free: 11.53 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2348 * Number of variables: 2348 Notification: Performance of Generate backend data structure: time 0.03093/0.4482, allocations: 9.426 MB / 0.492 GB, free: 2.012 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.255e-05/0.4483, allocations: 12.03 kB / 0.492 GB, free: 2 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003755/0.452, allocations: 1.135 MB / 0.4932 GB, free: 0.8555 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.3564/0.8085, allocations: 23.23 MB / 0.5158 GB, free: 9.59 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02095/0.8294, allocations: 7.537 MB / 0.5232 GB, free: 1.977 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004859/0.83, allocations: 435.7 kB / 0.5236 GB, free: 1.551 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002663/0.8326, allocations: 0.5893 MB / 0.5242 GB, free: 0.9609 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.4731/1.306, allocations: 16.85 MB / 0.5406 GB, free: 115.1 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003685/1.306, allocations: 79.23 kB / 0.5407 GB, free: 115.1 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001332/1.307, allocations: 268.8 kB / 0.541 GB, free: 115.1 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00535/1.313, allocations: 2.666 MB / 0.5436 GB, free: 114.9 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02721/1.34, allocations: 14.39 MB / 0.5576 GB, free: 109.5 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06568/1.406, allocations: 63.69 MB / 0.6198 GB, free: 45.7 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02096/1.427, allocations: 8.635 MB / 0.6283 GB, free: 36.91 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004673/1.432, allocations: 4.917 MB / 0.6331 GB, free: 31.99 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02406/1.456, allocations: 18.12 MB / 0.6508 GB, free: 13.67 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.208e-05/1.456, allocations: 64.56 kB / 0.6508 GB, free: 13.6 MB / 462.1 MB Notification: Performance of pre-optimization done (n=281): time 6.602e-06/1.456, allocations: 0 / 0.6508 GB, free: 13.6 MB / 462.1 MB Notification: Performance of matching and sorting (n=374): time 0.26/1.716, allocations: 72.75 MB / 0.7219 GB, free: 4.777 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001821/1.716, allocations: 372.6 kB / 0.7222 GB, free: 4.332 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00914/1.725, allocations: 6.422 MB / 0.7285 GB, free: 13.91 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.001004/1.726, allocations: 81.7 kB / 0.7286 GB, free: 13.82 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.00345/1.73, allocations: 4.836 MB / 0.7333 GB, free: 8.926 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001958/1.732, allocations: 1.368 MB / 0.7346 GB, free: 7.539 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002934/1.735, allocations: 1.836 MB / 0.7364 GB, free: 5.688 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 9.305e-05/1.735, allocations: 305.1 kB / 0.7367 GB, free: 5.387 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.2397/1.974, allocations: 5.656 MB / 0.7422 GB, free: 182.6 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01023/1.985, allocations: 10.62 MB / 0.7526 GB, free: 175.1 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01673/2.001, allocations: 17.37 MB / 0.7696 GB, free: 162.9 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001054/2.001, allocations: 54.22 kB / 0.7696 GB, free: 162.9 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1157) (initialization): time 0.04075/2.042, allocations: 21.96 MB / 0.7911 GB, free: 151.7 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001012/2.042, allocations: 79.94 kB / 0.7911 GB, free: 151.7 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001628/2.043, allocations: 172 kB / 0.7913 GB, free: 151.5 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01997/2.063, allocations: 6.854 MB / 0.798 GB, free: 145.1 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006983/2.07, allocations: 2.074 MB / 0.8 GB, free: 143.1 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0407/2.11, allocations: 36.39 MB / 0.8356 GB, free: 106.5 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007797/2.118, allocations: 0.722 MB / 0.8363 GB, free: 105.8 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001238/2.119, allocations: 0.5067 MB / 0.8368 GB, free: 105.3 MB / 0.5294 GB 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.004367/2.124, allocations: 3.424 MB / 0.8401 GB, free: 101.9 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001112/2.125, allocations: 0.5811 MB / 0.8407 GB, free: 101.7 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.028/2.153, allocations: 16.11 MB / 0.8564 GB, free: 85.5 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.739e-05/2.153, allocations: 47.98 kB / 0.8564 GB, free: 85.46 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.539e-05/2.153, allocations: 16 kB / 0.8565 GB, free: 85.44 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.964e-05/2.153, allocations: 19.94 kB / 0.8565 GB, free: 85.42 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0477/2.201, allocations: 31.31 MB / 0.887 GB, free: 53.85 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.509e-05/2.201, allocations: 7.938 kB / 0.8871 GB, free: 53.84 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003198/2.204, allocations: 0.608 MB / 0.8877 GB, free: 53.23 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01852/2.223, allocations: 6.429 MB / 0.8939 GB, free: 46.79 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007409/2.223, allocations: 71.98 kB / 0.894 GB, free: 46.72 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03864/2.262, allocations: 34.62 MB / 0.9278 GB, free: 11.77 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.617e-06/2.262, allocations: 4 kB / 0.9278 GB, free: 11.76 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2998/2.562, allocations: 23.54 MB / 0.9508 GB, free: 165 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00177/2.564, allocations: 0.6193 MB / 0.9514 GB, free: 164.9 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00123/2.565, allocations: 67.31 kB / 0.9515 GB, free: 164.9 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004257/2.569, allocations: 424.7 kB / 0.9519 GB, free: 164.8 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001231/2.57, allocations: 250.4 kB / 0.9521 GB, free: 164.8 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003569/2.571, allocations: 97.81 kB / 0.9522 GB, free: 164.7 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.005927/2.577, allocations: 4.1 MB / 0.9562 GB, free: 163.4 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.41e-07/2.577, allocations: 3.969 kB / 0.9562 GB, free: 163.4 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.008499/2.585, allocations: 2.185 MB / 0.9584 GB, free: 163.2 MB / 0.5294 GB 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.0365/2.622, allocations: 24.34 MB / 0.9821 GB, free: 152.1 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01848/2.64, allocations: 14.28 MB / 0.9961 GB, free: 138.5 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 8.737e-06/2.64, allocations: 0 / 0.9961 GB, free: 138.5 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.009128/2.649, allocations: 6.568 MB / 1.002 GB, free: 131.9 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006875/2.656, allocations: 0.9338 MB / 1.003 GB, free: 131 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.147/2.803, allocations: 102.6 MB / 1.104 GB, free: 20.76 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008748/2.812, allocations: 5.263 MB / 1.109 GB, free: 15.46 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.00773/2.82, allocations: 3.025 MB / 1.112 GB, free: 12.43 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00489/2.825, allocations: 3.393 MB / 1.115 GB, free: 9.035 MB / 0.5294 GB Notification: Performance of SimCode: time 1.173e-06/2.825, allocations: 4 kB / 1.115 GB, free: 9.031 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4704/3.295, allocations: 169.6 MB / 1.281 GB, free: 61.84 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 27.36/30.65, allocations: 3.984 kB / 1.281 GB, free: 61.84 MB / 0.545 GB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarFourbar_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarFourbar.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/PlanarFourbar/PlanarFourbar.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches