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.00126/0.00126, allocations: 103.4 kB / 17.2 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00132/0.00132, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.281/1.281, allocations: 227.4 MB / 246.3 MB, free: 10.75 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001233/0.001233, allocations: 58.66 kB / 306.4 MB, free: 0.9727 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08228/0.08353, allocations: 50.54 MB / 356.9 MB, free: 14.43 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.2488/0.3323, allocations: 76.96 MB / 433.8 MB, free: 14.66 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.03776/0.3701, allocations: 15.71 MB / 449.6 MB, free: 14.91 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01506/0.3852, allocations: 359.1 kB / 449.9 MB, free: 14.56 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01089/0.3962, allocations: 6.273 MB / 456.2 MB, free: 8.27 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00639/0.4026, allocations: 2.66 MB / 458.8 MB, free: 5.602 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004479/0.4071, allocations: 2.186 MB / 461 MB, free: 3.414 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01561/0.4227, allocations: 13.82 MB / 474.8 MB, free: 5.566 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01036/0.4331, allocations: 8.267 MB / 483.1 MB, free: 13.23 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00483/0.438, allocations: 2.835 MB / 486 MB, free: 10.38 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006016/0.444, allocations: 4.429 MB / 490.4 MB, free: 5.941 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001785/0.4458, allocations: 0.496 MB / 490.9 MB, free: 5.445 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003918/0.4498, allocations: 1.759 MB / 492.6 MB, free: 3.684 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003937/0.4537, allocations: 3.589 MB / 496.2 MB, free: 88 kB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004691/0.4584, allocations: 4.102 MB / 0.4886 GB, free: 11.96 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01136/0.4698, allocations: 13.35 MB / 0.5016 GB, free: 14.57 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.23e-06/0.4699, allocations: 0 / 0.5016 GB, free: 14.57 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.4699, allocations: 0 / 0.5016 GB, free: 14.57 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0003176/0.4702, allocations: 4 kB / 0.5016 GB, free: 14.57 MB / 430.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.0244/0.4946, allocations: 9.428 MB / 0.5108 GB, free: 5.051 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.273e-05/0.4947, allocations: 16.03 kB / 0.5109 GB, free: 5.035 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00167/0.4963, allocations: 1.135 MB / 0.512 GB, free: 3.891 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.5879/1.084, allocations: 23.22 MB / 0.5346 GB, free: 144.2 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01578/1.1, allocations: 7.407 MB / 0.5419 GB, free: 142.2 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002473/1.1, allocations: 432.1 kB / 0.5423 GB, free: 142 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001034/1.101, allocations: 0.5799 MB / 0.5429 GB, free: 141.8 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02212/1.124, allocations: 16.87 MB / 0.5593 GB, free: 133.8 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001497/1.124, allocations: 81.98 kB / 0.5594 GB, free: 133.7 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000552/1.124, allocations: 268.7 kB / 0.5597 GB, free: 133.6 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003211/1.127, allocations: 2.66 MB / 0.5623 GB, free: 131 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01995/1.147, allocations: 14.39 MB / 0.5763 GB, free: 116.6 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05346/1.201, allocations: 63.97 MB / 0.6388 GB, free: 51.25 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0183/1.219, allocations: 8.639 MB / 0.6472 GB, free: 42.45 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004115/1.223, allocations: 4.929 MB / 0.652 GB, free: 37.51 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01933/1.243, allocations: 18.1 MB / 0.6697 GB, free: 19.22 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.609e-05/1.243, allocations: 80.36 kB / 0.6698 GB, free: 19.13 MB / 446.1 MB Notification: Performance of pre-optimization done (n=281): time 4.498e-06/1.243, allocations: 0 / 0.6698 GB, free: 19.13 MB / 446.1 MB Notification: Performance of matching and sorting (n=374): time 0.3755/1.618, allocations: 72.74 MB / 0.7408 GB, free: 139.7 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.732e-05/1.618, allocations: 377.8 kB / 0.7412 GB, free: 139.2 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006353/1.625, allocations: 6.412 MB / 0.7474 GB, free: 133.4 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004392/1.625, allocations: 86.69 kB / 0.7475 GB, free: 133.3 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001945/1.627, allocations: 4.836 MB / 0.7522 GB, free: 128.5 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008956/1.628, allocations: 1.37 MB / 0.7536 GB, free: 127.1 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002135/1.63, allocations: 1.835 MB / 0.7554 GB, free: 125.2 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 3.726e-05/1.63, allocations: 305.1 kB / 0.7557 GB, free: 124.9 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005423/1.636, allocations: 5.659 MB / 0.7612 GB, free: 119.3 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007131/1.643, allocations: 10.62 MB / 0.7716 GB, free: 106.2 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01368/1.657, allocations: 17.35 MB / 0.7885 GB, free: 86.46 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.755e-05/1.657, allocations: 48 kB / 0.7886 GB, free: 86.41 MB / 462.1 MB Notification: Performance of matching and sorting (n=1157) (initialization): time 0.03201/1.689, allocations: 21.97 MB / 0.81 GB, free: 64.39 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.725e-05/1.689, allocations: 79.94 kB / 0.8101 GB, free: 64.32 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.164e-05/1.689, allocations: 173.1 kB / 0.8103 GB, free: 64.15 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01691/1.706, allocations: 6.859 MB / 0.8169 GB, free: 57.28 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005511/1.711, allocations: 2.078 MB / 0.819 GB, free: 55.2 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03553/1.747, allocations: 33.95 MB / 0.8521 GB, free: 20.87 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007861/1.755, allocations: 0.7175 MB / 0.8528 GB, free: 20.15 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009475/1.756, allocations: 0.5113 MB / 0.8533 GB, free: 19.64 MB / 462.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.004485/1.76, allocations: 3.425 MB / 0.8567 GB, free: 16.2 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001131/1.761, allocations: 0.5824 MB / 0.8572 GB, free: 15.61 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2097/1.971, allocations: 16.1 MB / 0.873 GB, free: 132.8 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001175/1.971, allocations: 53.58 kB / 0.873 GB, free: 132.8 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.708e-05/1.971, allocations: 17.47 kB / 0.873 GB, free: 132.8 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001108/1.971, allocations: 18.19 kB / 0.8731 GB, free: 132.8 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05137/2.023, allocations: 31.41 MB / 0.9037 GB, free: 122.3 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.531e-05/2.023, allocations: 7.906 kB / 0.9037 GB, free: 122.3 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002857/2.026, allocations: 0.6056 MB / 0.9043 GB, free: 122.2 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01732/2.043, allocations: 6.541 MB / 0.9107 GB, free: 120 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000815/2.044, allocations: 64.25 kB / 0.9108 GB, free: 119.9 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03679/2.081, allocations: 32.24 MB / 0.9423 GB, free: 92.42 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.629e-06/2.081, allocations: 4 kB / 0.9423 GB, free: 92.41 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03402/2.115, allocations: 23.55 MB / 0.9653 GB, free: 69.12 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001882/2.117, allocations: 0.6227 MB / 0.9659 GB, free: 68.8 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001082/2.118, allocations: 60 kB / 0.9659 GB, free: 68.74 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003446/2.121, allocations: 430.7 kB / 0.9663 GB, free: 68.32 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001072/2.122, allocations: 254.3 kB / 0.9666 GB, free: 68.07 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003353/2.123, allocations: 95.98 kB / 0.9667 GB, free: 67.98 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.004792/2.127, allocations: 4.103 MB / 0.9707 GB, free: 63.89 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.2e-07/2.127, allocations: 0 / 0.9707 GB, free: 63.89 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.007625/2.135, allocations: 2.181 MB / 0.9728 GB, free: 61.72 MB / 462.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.03286/2.168, allocations: 24.33 MB / 0.9966 GB, free: 37.47 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.01875/2.187, allocations: 14.25 MB / 1.01 GB, free: 23.24 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.027e-05/2.187, allocations: 0 / 1.01 GB, free: 23.24 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.008362/2.195, allocations: 6.564 MB / 1.017 GB, free: 16.64 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00534/2.2, allocations: 0.8807 MB / 1.018 GB, free: 15.79 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3369/2.537, allocations: 124 MB / 1.139 GB, free: 68.77 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005012/2.542, allocations: 5.265 MB / 1.144 GB, free: 63.49 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.00644/2.549, allocations: 3.031 MB / 1.147 GB, free: 60.45 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004061/2.553, allocations: 3.385 MB / 1.15 GB, free: 57.07 MB / 478.1 MB Notification: Performance of SimCode: time 1.232e-06/2.553, allocations: 0 / 1.15 GB, free: 57.07 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.004/3.558, allocations: 167.3 MB / 1.314 GB, free: 89.27 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001626/3.558, allocations: 246.8 kB / 1.314 GB, free: 89.02 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.226/8.784, allocations: 0 / 1.314 GB, free: 89.02 MB / 494.1 MB (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