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.0008017/0.0008018, allocations: 99.2 kB / 17.3 MB, free: 6.395 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.000974/0.0009743, allocations: 179 kB / 18.2 MB, free: 5.555 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.362/1.362, allocations: 205.4 MB / 224.4 MB, free: 13.08 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.0004506/0.0004509, allocations: 12 kB / 281.5 MB, free: 3.316 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09781/0.09827, allocations: 47.58 MB / 329.1 MB, free: 3.656 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.2606/0.3589, allocations: 79.49 MB / 408.6 MB, free: 8.148 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.03374/0.3927, allocations: 16.56 MB / 425.1 MB, free: 1.309 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01691/0.4096, allocations: 370.6 kB / 425.5 MB, free: 1.246 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002465/0.4121, allocations: 0.6703 MB / 426.1 MB, free: 0.7227 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008373/0.4205, allocations: 2.712 MB / 428.9 MB, free: 15.1 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003276/0.4238, allocations: 1.352 MB / 430.2 MB, free: 14.27 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01476/0.4386, allocations: 12.68 MB / 442.9 MB, free: 4.035 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01571/0.4543, allocations: 11.92 MB / 454.8 MB, free: 8.457 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004551/0.4589, allocations: 2.237 MB / 457 MB, free: 6.211 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005736/0.4647, allocations: 3.687 MB / 460.7 MB, free: 2.512 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001224/0.466, allocations: 247.9 kB / 461 MB, free: 2.27 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003345/0.4693, allocations: 1.521 MB / 462.5 MB, free: 0.7461 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003322/0.4726, allocations: 3.249 MB / 465.7 MB, free: 13.49 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004661/0.4773, allocations: 3.702 MB / 469.4 MB, free: 9.758 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01337/0.4907, allocations: 13.01 MB / 482.4 MB, free: 12.71 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.081e-06/0.4908, allocations: 3.938 kB / 482.5 MB, free: 12.71 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.544e-06/0.4908, allocations: 0 / 482.5 MB, free: 12.71 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000402/0.4912, allocations: 0 / 482.5 MB, free: 12.71 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.02269/0.5139, allocations: 7.804 MB / 490.3 MB, free: 4.816 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.443e-05/0.5139, allocations: 12.03 kB / 490.3 MB, free: 4.805 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004033/0.518, allocations: 1.135 MB / 491.4 MB, free: 3.66 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.3405/0.8585, allocations: 23.86 MB / 0.5032 GB, free: 11.76 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01721/0.8757, allocations: 8.478 MB / 0.5115 GB, free: 3.207 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003609/0.8761, allocations: 439.9 kB / 0.5119 GB, free: 2.777 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002039/0.8781, allocations: 0.5815 MB / 0.5125 GB, free: 2.195 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03401/0.9122, allocations: 16.92 MB / 0.529 GB, free: 328 kB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003539/0.9126, allocations: 75.36 kB / 0.5291 GB, free: 252 kB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001805/0.9144, allocations: 271.9 kB / 0.5293 GB, free: 15.98 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00476/0.9192, allocations: 2.662 MB / 0.5319 GB, free: 13.32 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3178/1.237, allocations: 14.45 MB / 0.546 GB, free: 156.4 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06688/1.304, allocations: 64.12 MB / 0.6086 GB, free: 111.1 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02011/1.324, allocations: 8.686 MB / 0.6171 GB, free: 102.3 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004709/1.329, allocations: 4.919 MB / 0.6219 GB, free: 97.41 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0195/1.348, allocations: 18.12 MB / 0.6396 GB, free: 79.21 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.199e-05/1.348, allocations: 72.41 kB / 0.6397 GB, free: 79.13 MB / 446.1 MB Notification: Performance of pre-optimization done (n=281): time 5.049e-06/1.348, allocations: 0 / 0.6397 GB, free: 79.13 MB / 446.1 MB Notification: Performance of matching and sorting (n=374): time 0.2325/1.581, allocations: 74.04 MB / 0.712 GB, free: 5.078 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001007/1.581, allocations: 380.5 kB / 0.7124 GB, free: 4.625 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1581/1.739, allocations: 6.489 MB / 0.7187 GB, free: 150.7 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001041/1.74, allocations: 85.39 kB / 0.7188 GB, free: 150.6 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003478/1.744, allocations: 4.858 MB / 0.7235 GB, free: 148.9 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001835/1.746, allocations: 1.366 MB / 0.7249 GB, free: 147.9 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001369/1.747, allocations: 0.74 MB / 0.7256 GB, free: 147.6 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.3e-05/1.747, allocations: 302.6 kB / 0.7259 GB, free: 147.3 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008232/1.755, allocations: 5.664 MB / 0.7314 GB, free: 145.2 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009118/1.764, allocations: 10.61 MB / 0.7418 GB, free: 136.5 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01606/1.78, allocations: 17.35 MB / 0.7587 GB, free: 124.4 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001089/1.781, allocations: 55.72 kB / 0.7588 GB, free: 124.4 MB / 446.1 MB Notification: Performance of matching and sorting (n=1157) (initialization): time 0.03737/1.818, allocations: 21.99 MB / 0.7802 GB, free: 108.5 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001625/1.818, allocations: 80.03 kB / 0.7803 GB, free: 108.5 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002155/1.818, allocations: 172 kB / 0.7805 GB, free: 108.3 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01876/1.837, allocations: 6.894 MB / 0.7872 GB, free: 101.4 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006729/1.844, allocations: 2.073 MB / 0.7892 GB, free: 99.31 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03851/1.882, allocations: 34.04 MB / 0.8225 GB, free: 64.89 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008315/1.891, allocations: 0.7206 MB / 0.8232 GB, free: 64.17 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001407/1.892, allocations: 0.507 MB / 0.8237 GB, free: 63.66 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.006318/1.899, allocations: 3.435 MB / 0.827 GB, free: 60.21 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001583/1.9, allocations: 0.5901 MB / 0.8276 GB, free: 59.62 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02957/1.93, allocations: 16.12 MB / 0.8433 GB, free: 43.43 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.545e-05/1.93, allocations: 48 kB / 0.8434 GB, free: 43.38 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.544e-05/1.93, allocations: 19.98 kB / 0.8434 GB, free: 43.36 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.289e-05/1.93, allocations: 23.88 kB / 0.8434 GB, free: 43.34 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04951/1.979, allocations: 31.46 MB / 0.8742 GB, free: 11.43 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.247e-05/1.98, allocations: 2.219 kB / 0.8742 GB, free: 11.43 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.1669/2.147, allocations: 0.6026 MB / 0.8748 GB, free: 135.8 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02075/2.167, allocations: 6.571 MB / 0.8812 GB, free: 135.8 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000772/2.168, allocations: 71.22 kB / 0.8812 GB, free: 135.8 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03732/2.205, allocations: 32.3 MB / 0.9128 GB, free: 124.1 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.609e-06/2.205, allocations: 7.75 kB / 0.9128 GB, free: 124.1 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03454/2.24, allocations: 23.56 MB / 0.9358 GB, free: 105.4 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004029/2.244, allocations: 1.633 MB / 0.9374 GB, free: 104.1 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001535/2.246, allocations: 68 kB / 0.9375 GB, free: 104 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004393/2.25, allocations: 428.7 kB / 0.9379 GB, free: 103.6 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001012/2.251, allocations: 254.4 kB / 0.9381 GB, free: 103.4 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003111/2.251, allocations: 91.98 kB / 0.9382 GB, free: 103.3 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.005048/2.256, allocations: 4.159 MB / 0.9423 GB, free: 99.14 MB / 446.1 MB Notification: Performance of sort global known variables: time 4.51e-07/2.256, allocations: 0 / 0.9423 GB, free: 99.14 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.008096/2.265, allocations: 2.197 MB / 0.9444 GB, free: 96.96 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.03411/2.299, allocations: 24.35 MB / 0.9682 GB, free: 72.73 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01748/2.316, allocations: 14.24 MB / 0.9821 GB, free: 58.51 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.279e-05/2.316, allocations: 0 / 0.9821 GB, free: 58.51 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.008066/2.324, allocations: 6.556 MB / 0.9885 GB, free: 51.91 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006828/2.331, allocations: 0.8974 MB / 0.9894 GB, free: 51.04 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3369/2.668, allocations: 125 MB / 1.111 GB, free: 110.4 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005303/2.673, allocations: 5.295 MB / 1.117 GB, free: 105.1 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.006595/2.68, allocations: 3.033 MB / 1.12 GB, free: 102 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004396/2.684, allocations: 3.409 MB / 1.123 GB, free: 98.61 MB / 462.1 MB Notification: Performance of SimCode: time 1.342e-06/2.685, allocations: 0 / 1.123 GB, free: 98.61 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3953/3.08, allocations: 164.9 MB / 1.284 GB, free: 99.43 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001407/3.08, allocations: 246 kB / 1.284 GB, free: 99.18 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.718/8.798, allocations: 0 / 1.284 GB, free: 99.18 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