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.001018/0.001018, allocations: 108.5 kB / 17.16 MB, free: 6.305 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.000946/0.000946, allocations: 198 kB / 18.07 MB, free: 5.41 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.203/1.203, allocations: 205.1 MB / 223.9 MB, free: 12.48 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.001146/0.001146, allocations: 47.92 kB / 280.1 MB, free: 3.5 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09417/0.09533, allocations: 46.64 MB / 326.7 MB, free: 4.801 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.2617/0.357, allocations: 81.45 MB / 408.2 MB, free: 8.484 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.03992/0.397, allocations: 16.62 MB / 424.8 MB, free: 0.8398 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02109/0.4181, allocations: 377.2 kB / 425.1 MB, free: 0.7773 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01032/0.4285, allocations: 6.304 MB / 431.4 MB, free: 12.66 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007887/0.4364, allocations: 2.698 MB / 434.1 MB, free: 10.65 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004453/0.4409, allocations: 2.188 MB / 436.3 MB, free: 8.457 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01373/0.4547, allocations: 12.68 MB / 449 MB, free: 11.75 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009055/0.4637, allocations: 8.294 MB / 457.3 MB, free: 3.379 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004384/0.4681, allocations: 2.85 MB / 460.2 MB, free: 0.5195 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006171/0.4743, allocations: 4.456 MB / 464.6 MB, free: 12.05 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001265/0.4756, allocations: 500 kB / 465.1 MB, free: 11.56 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004214/0.4798, allocations: 1.767 MB / 466.9 MB, free: 9.793 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004403/0.4843, allocations: 3.632 MB / 470.5 MB, free: 6.152 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007384/0.4917, allocations: 4.149 MB / 474.7 MB, free: 1.98 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01721/0.5089, allocations: 13.44 MB / 488.1 MB, free: 4.496 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.266e-05/0.509, allocations: 0 / 488.1 MB, free: 4.496 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.145e-06/0.509, allocations: 0 / 488.1 MB, free: 4.496 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0004882/0.5095, allocations: 0 / 488.1 MB, free: 4.496 MB / 382.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.03587/0.5454, allocations: 9.488 MB / 497.6 MB, free: 10.92 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.827e-05/0.5455, allocations: 8.031 kB / 497.6 MB, free: 10.91 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005149/0.5506, allocations: 1.139 MB / 498.7 MB, free: 9.762 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.287/0.8377, allocations: 23.24 MB / 0.5097 GB, free: 2.488 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02379/0.8615, allocations: 8.482 MB / 0.518 GB, free: 9.93 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005664/0.8621, allocations: 435.9 kB / 0.5184 GB, free: 9.504 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003957/0.8661, allocations: 0.5893 MB / 0.519 GB, free: 8.914 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04613/0.9123, allocations: 16.86 MB / 0.5355 GB, free: 7.098 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006036/0.9129, allocations: 79.28 kB / 0.5356 GB, free: 7.02 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003332/0.9163, allocations: 267.8 kB / 0.5358 GB, free: 6.758 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005361/0.9217, allocations: 2.658 MB / 0.5384 GB, free: 4.094 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.5051/1.427, allocations: 14.4 MB / 0.5525 GB, free: 158.6 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09397/1.521, allocations: 64.13 MB / 0.6151 GB, free: 103.1 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02214/1.543, allocations: 8.636 MB / 0.6235 GB, free: 94.41 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006847/1.55, allocations: 4.912 MB / 0.6283 GB, free: 89.49 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03348/1.584, allocations: 18.13 MB / 0.646 GB, free: 71.27 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.258e-05/1.584, allocations: 60.56 kB / 0.6461 GB, free: 71.2 MB / 446.1 MB Notification: Performance of pre-optimization done (n=281): time 7.724e-06/1.584, allocations: 0 / 0.6461 GB, free: 71.2 MB / 446.1 MB Notification: Performance of matching and sorting (n=374): time 0.4826/2.066, allocations: 72.99 MB / 0.7174 GB, free: 149.7 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001703/2.067, allocations: 378.4 kB / 0.7177 GB, free: 149.3 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01271/2.079, allocations: 6.494 MB / 0.7241 GB, free: 148.2 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001648/2.081, allocations: 86.34 kB / 0.7241 GB, free: 148.1 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.004511/2.085, allocations: 4.858 MB / 0.7289 GB, free: 145.3 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002895/2.088, allocations: 1.367 MB / 0.7302 GB, free: 144.3 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004117/2.093, allocations: 1.826 MB / 0.732 GB, free: 143.4 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 8.429e-05/2.093, allocations: 301.9 kB / 0.7323 GB, free: 143.1 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007709/2.1, allocations: 5.661 MB / 0.7378 GB, free: 141 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009491/2.11, allocations: 10.62 MB / 0.7482 GB, free: 132.3 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0168/2.127, allocations: 17.36 MB / 0.7652 GB, free: 120.2 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.635e-05/2.127, allocations: 48.75 kB / 0.7652 GB, free: 120.2 MB / 446.1 MB Notification: Performance of matching and sorting (n=1157) (initialization): time 0.0357/2.162, allocations: 21.97 MB / 0.7867 GB, free: 101.7 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001077/2.163, allocations: 76 kB / 0.7867 GB, free: 101.6 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001769/2.163, allocations: 172.9 kB / 0.7869 GB, free: 101.4 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01787/2.181, allocations: 6.859 MB / 0.7936 GB, free: 94.57 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006083/2.187, allocations: 2.074 MB / 0.7956 GB, free: 92.49 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03758/2.224, allocations: 33.96 MB / 0.8288 GB, free: 58.14 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007908/2.232, allocations: 0.7059 MB / 0.8295 GB, free: 57.44 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001556/2.234, allocations: 0.5078 MB / 0.83 GB, free: 56.93 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.006171/2.24, allocations: 3.434 MB / 0.8333 GB, free: 53.48 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001632/2.242, allocations: 0.5901 MB / 0.8339 GB, free: 52.89 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02704/2.269, allocations: 16.1 MB / 0.8496 GB, free: 36.71 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.097e-05/2.269, allocations: 52 kB / 0.8497 GB, free: 36.66 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.898e-05/2.269, allocations: 20 kB / 0.8497 GB, free: 36.64 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.52e-05/2.269, allocations: 19.92 kB / 0.8497 GB, free: 36.62 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2262/2.495, allocations: 31.43 MB / 0.8804 GB, free: 134.2 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.684e-05/2.495, allocations: 2.531 kB / 0.8804 GB, free: 134.2 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003145/2.498, allocations: 0.6068 MB / 0.881 GB, free: 134.2 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0189/2.517, allocations: 6.545 MB / 0.8874 GB, free: 134.1 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009444/2.518, allocations: 60.7 kB / 0.8875 GB, free: 134.1 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03623/2.555, allocations: 32.25 MB / 0.9189 GB, free: 120.1 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/2.555, allocations: 0 / 0.9189 GB, free: 120.1 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0315/2.586, allocations: 23.55 MB / 0.9419 GB, free: 98.09 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003578/2.59, allocations: 1.631 MB / 0.9435 GB, free: 96.77 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001635/2.591, allocations: 71.11 kB / 0.9436 GB, free: 96.7 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004225/2.596, allocations: 430.3 kB / 0.944 GB, free: 96.29 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001175/2.597, allocations: 246.6 kB / 0.9442 GB, free: 96.05 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004298/2.597, allocations: 91.98 kB / 0.9443 GB, free: 95.96 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.006266/2.604, allocations: 4.156 MB / 0.9484 GB, free: 91.81 MB / 446.1 MB Notification: Performance of sort global known variables: time 3e-07/2.604, allocations: 4 kB / 0.9484 GB, free: 91.81 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.008515/2.612, allocations: 2.197 MB / 0.9505 GB, free: 89.62 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.0343/2.646, allocations: 24.32 MB / 0.9743 GB, free: 65.43 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01708/2.663, allocations: 14.24 MB / 0.9882 GB, free: 51.19 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.705e-06/2.664, allocations: 4 kB / 0.9882 GB, free: 51.18 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.008145/2.672, allocations: 6.56 MB / 0.9946 GB, free: 44.58 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006151/2.678, allocations: 0.9073 MB / 0.9955 GB, free: 43.71 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3488/3.027, allocations: 124.9 MB / 1.117 GB, free: 104.6 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004768/3.031, allocations: 5.286 MB / 1.123 GB, free: 99.3 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.006365/3.038, allocations: 3.042 MB / 1.126 GB, free: 96.26 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003773/3.042, allocations: 3.409 MB / 1.129 GB, free: 92.85 MB / 462.1 MB Notification: Performance of SimCode: time 1.102e-06/3.042, allocations: 0 / 1.129 GB, free: 92.85 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4815/3.523, allocations: 167.9 MB / 1.293 GB, free: 91.81 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001545/3.523, allocations: 246.3 kB / 1.293 GB, free: 91.56 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.243/8.766, allocations: 0 / 1.293 GB, free: 91.56 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","../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches