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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001486/0.001486, allocations: 105.1 kB / 21.22 MB, free: 0.5078 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001657/0.001657, allocations: 214.9 kB / 24.52 MB, free: 3.684 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.388/1.388, allocations: 230.5 MB / 258.2 MB, free: 7.754 MB / 206.1 MB " [Timeout remaining time 178] 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarFourbar",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001914/0.001914, allocations: 67.89 kB / 378.5 MB, free: 2.836 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2545/0.2564, allocations: 53.4 MB / 431.9 MB, free: 6.48 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.01863/0.2751, allocations: 15.51 MB / 447.4 MB, free: 6.906 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01262/0.2877, allocations: 5.845 MB / 453.3 MB, free: 1.047 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003793/0.2915, allocations: 167.1 kB / 453.4 MB, free: 0.8828 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01147/0.303, allocations: 6.067 MB / 459.5 MB, free: 10.8 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007081/0.31, allocations: 2.903 MB / 462.4 MB, free: 7.883 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004777/0.3148, allocations: 2.246 MB / 464.6 MB, free: 5.633 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01384/0.3287, allocations: 9.708 MB / 474.4 MB, free: 11.91 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007932/0.3366, allocations: 6.232 MB / 480.6 MB, free: 5.574 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005155/0.3417, allocations: 3.249 MB / 483.8 MB, free: 2.316 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00692/0.3487, allocations: 4.479 MB / 488.3 MB, free: 13.82 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001631/0.3503, allocations: 0.7148 MB / 489 MB, free: 13.11 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003623/0.3539, allocations: 1.81 MB / 490.8 MB, free: 11.3 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004204/0.3581, allocations: 3.908 MB / 494.7 MB, free: 7.379 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005234/0.3634, allocations: 3.408 MB / 498.2 MB, free: 3.953 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01784/0.3812, allocations: 13.94 MB / 0.5001 GB, free: 5.965 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.312e-06/0.3812, allocations: 0 / 0.5001 GB, free: 5.965 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.893e-06/0.3812, allocations: 4 kB / 0.5001 GB, free: 5.961 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.000352/0.3816, allocations: 0 / 0.5001 GB, free: 5.961 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.0264/0.408, allocations: 9.585 MB / 0.5095 GB, free: 12.29 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.136e-05/0.408, allocations: 16.03 kB / 0.5095 GB, free: 12.28 MB / 430.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0002007/0.4082, allocations: 175.7 kB / 0.5096 GB, free: 12.11 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00222/0.4104, allocations: 1.135 MB / 0.5107 GB, free: 10.96 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2837/0.6942, allocations: 23.27 MB / 0.5335 GB, free: 3.656 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.3847/1.079, allocations: 7.468 MB / 0.5408 GB, free: 94.28 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003644/1.079, allocations: 435 kB / 0.5412 GB, free: 94.12 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002435/1.082, allocations: 0.5801 MB / 0.5417 GB, free: 93.97 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02703/1.109, allocations: 17.09 MB / 0.5584 GB, free: 82.92 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002422/1.109, allocations: 82.89 kB / 0.5585 GB, free: 82.85 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008325/1.11, allocations: 265.5 kB / 0.5588 GB, free: 82.63 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003519/1.113, allocations: 2.662 MB / 0.5614 GB, free: 79.99 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0236/1.137, allocations: 14.4 MB / 0.5754 GB, free: 65.61 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06317/1.2, allocations: 60.2 MB / 0.6342 GB, free: 4.781 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02073/1.221, allocations: 7.896 MB / 0.6419 GB, free: 12.89 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0061/1.227, allocations: 4.585 MB / 0.6464 GB, free: 8.301 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02708/1.254, allocations: 16.51 MB / 0.6625 GB, free: 7.898 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.529e-05/1.254, allocations: 72.48 kB / 0.6626 GB, free: 7.82 MB / 478.1 MB Notification: Performance of pre-optimization done (n=281): time 6.021e-06/1.254, allocations: 0 / 0.6626 GB, free: 7.82 MB / 478.1 MB Notification: Performance of matching and sorting (n=374): time 0.2553/1.509, allocations: 73.16 MB / 0.734 GB, free: 14.99 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003133/1.51, allocations: 380.6 kB / 0.7344 GB, free: 14.54 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01169/1.521, allocations: 6.427 MB / 0.7407 GB, free: 8.109 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0014/1.523, allocations: 81.7 kB / 0.7408 GB, free: 8.023 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.005298/1.528, allocations: 5.024 MB / 0.7457 GB, free: 2.957 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.002208/1.53, allocations: 1.426 MB / 0.7471 GB, free: 1.52 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.2066/1.737, allocations: 1.843 MB / 0.7489 GB, free: 193.2 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 4.874e-05/1.737, allocations: 302.2 kB / 0.7491 GB, free: 192.9 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008355/1.745, allocations: 5.665 MB / 0.7547 GB, free: 191.8 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008754/1.754, allocations: 10.82 MB / 0.7652 GB, free: 182.8 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01578/1.77, allocations: 17.35 MB / 0.7822 GB, free: 170.9 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001602/1.77, allocations: 50.59 kB / 0.7822 GB, free: 170.9 MB / 0.545 GB Notification: Performance of matching and sorting (n=1157) (initialization): time 0.03761/1.808, allocations: 21.92 MB / 0.8036 GB, free: 152.9 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 9.191e-05/1.808, allocations: 83.94 kB / 0.8037 GB, free: 152.8 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000129/1.808, allocations: 172.8 kB / 0.8039 GB, free: 152.6 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01775/1.826, allocations: 6.85 MB / 0.8106 GB, free: 145.8 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006371/1.832, allocations: 2.074 MB / 0.8126 GB, free: 143.7 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03641/1.868, allocations: 35.73 MB / 0.8475 GB, free: 107.8 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008029/1.876, allocations: 0.7179 MB / 0.8482 GB, free: 107.1 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001399/1.878, allocations: 0.5078 MB / 0.8487 GB, free: 106.6 MB / 0.545 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.00545/1.883, allocations: 3.425 MB / 0.852 GB, free: 103.3 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001263/1.884, allocations: 0.62 MB / 0.8526 GB, free: 103 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02526/1.91, allocations: 16.02 MB / 0.8683 GB, free: 86.95 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.088e-05/1.91, allocations: 51.75 kB / 0.8683 GB, free: 86.9 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.761e-05/1.91, allocations: 20 kB / 0.8684 GB, free: 86.88 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.991e-05/1.91, allocations: 19.92 kB / 0.8684 GB, free: 86.86 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04432/1.954, allocations: 29.93 MB / 0.8976 GB, free: 56.65 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.796e-05/1.954, allocations: 4 kB / 0.8976 GB, free: 56.65 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00286/1.957, allocations: 0.6045 MB / 0.8982 GB, free: 56.04 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01636/1.973, allocations: 6.428 MB / 0.9045 GB, free: 49.6 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006884/1.974, allocations: 67.98 kB / 0.9045 GB, free: 49.53 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03495/2.009, allocations: 33.98 MB / 0.9377 GB, free: 15.22 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.837e-06/2.009, allocations: 4 kB / 0.9377 GB, free: 15.22 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2426/2.252, allocations: 23.5 MB / 0.9607 GB, free: 173.1 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001646/2.253, allocations: 0.5777 MB / 0.9612 GB, free: 173 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001593/2.255, allocations: 60.28 kB / 0.9613 GB, free: 173 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004189/2.259, allocations: 428.4 kB / 0.9617 GB, free: 172.9 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00116/2.26, allocations: 264.7 kB / 0.962 GB, free: 172.9 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003623/2.261, allocations: 100.9 kB / 0.9621 GB, free: 172.9 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.005446/2.266, allocations: 4.105 MB / 0.9661 GB, free: 171.5 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.7e-07/2.266, allocations: 0 / 0.9661 GB, free: 171.5 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.008397/2.275, allocations: 2.183 MB / 0.9682 GB, free: 171.3 MB / 0.545 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.03568/2.31, allocations: 24.28 MB / 0.9919 GB, free: 160.3 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01881/2.329, allocations: 13.66 MB / 1.005 GB, free: 148.2 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.08e-05/2.329, allocations: 4 kB / 1.005 GB, free: 148.2 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.008345/2.337, allocations: 6.026 MB / 1.011 GB, free: 142.2 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005529/2.343, allocations: 0.9372 MB / 1.012 GB, free: 141.3 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1451/2.488, allocations: 102.9 MB / 1.113 GB, free: 30.73 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005351/2.493, allocations: 4.776 MB / 1.117 GB, free: 25.91 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.005934/2.499, allocations: 3.032 MB / 1.12 GB, free: 22.88 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004938/2.504, allocations: 3.393 MB / 1.123 GB, free: 19.48 MB / 0.545 GB Notification: Performance of SimCode: time 1.453e-06/2.504, allocations: 0 / 1.123 GB, free: 19.48 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4324/2.937, allocations: 168.9 MB / 1.288 GB, free: 80.01 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate platform static: time 27.32/30.25, allocations: 13.53 kB / 1.288 GB, free: 80 MB / 0.5607 GB " [Timeout remaining time 629] (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 --stepSize=0.0009996 --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) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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) [Timeout 660] "" [Timeout remaining time 659] Reference file matches [Calling sys.exit(0), Time elapsed: 35.51082431501709]