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.00156/0.00156, allocations: 109.1 kB / 21.22 MB, free: 0.7539 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.001672/0.001672, allocations: 220.2 kB / 24.53 MB, free: 4.008 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.399/1.399, allocations: 230.5 MB / 258.2 MB, free: 8.008 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.002206/0.002206, allocations: 63.91 kB / 378.6 MB, free: 3.031 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.248/0.2502, allocations: 53.41 MB / 432 MB, free: 6.715 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.01993/0.2701, allocations: 18.13 MB / 450.1 MB, free: 4.504 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01243/0.2826, allocations: 6.1 MB / 456.2 MB, free: 14.39 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003234/0.2858, allocations: 171.1 kB / 456.4 MB, free: 14.22 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01195/0.2978, allocations: 6.351 MB / 462.7 MB, free: 7.848 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008042/0.3058, allocations: 2.898 MB / 465.6 MB, free: 4.941 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005731/0.3115, allocations: 2.308 MB / 467.9 MB, free: 2.629 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0145/0.326, allocations: 9.708 MB / 477.6 MB, free: 8.906 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008195/0.3342, allocations: 6.225 MB / 483.9 MB, free: 2.582 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005542/0.3398, allocations: 3.257 MB / 487.1 MB, free: 15.32 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007113/0.3469, allocations: 4.464 MB / 491.6 MB, free: 10.84 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001661/0.3486, allocations: 0.7148 MB / 492.3 MB, free: 10.12 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003735/0.3523, allocations: 1.951 MB / 494.3 MB, free: 8.172 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004177/0.3565, allocations: 3.919 MB / 498.2 MB, free: 4.242 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005501/0.362, allocations: 4.399 MB / 0.4908 GB, free: 15.82 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01606/0.378, allocations: 13.88 MB / 0.5043 GB, free: 1.891 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.961e-06/0.378, allocations: 0 / 0.5043 GB, free: 1.891 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.378, allocations: 0 / 0.5043 GB, free: 1.891 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0003293/0.3784, allocations: 0 / 0.5043 GB, free: 1.891 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.02789/0.4063, allocations: 9.585 MB / 0.5137 GB, free: 8.219 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.575e-05/0.4063, allocations: 8.031 kB / 0.5137 GB, free: 8.211 MB / 430.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0002104/0.4065, allocations: 175.7 kB / 0.5139 GB, free: 8.039 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002735/0.4092, allocations: 1.139 MB / 0.515 GB, free: 6.891 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.6839/1.093, allocations: 23.27 MB / 0.5377 GB, free: 94.12 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0174/1.111, allocations: 7.462 MB / 0.545 GB, free: 92.3 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000251/1.111, allocations: 434.1 kB / 0.5454 GB, free: 92.14 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001577/1.112, allocations: 0.5864 MB / 0.546 GB, free: 91.97 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0251/1.137, allocations: 16.86 MB / 0.5625 GB, free: 80.34 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002441/1.138, allocations: 83.41 kB / 0.5625 GB, free: 80.25 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008604/1.139, allocations: 261.7 kB / 0.5628 GB, free: 80.04 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003429/1.142, allocations: 2.661 MB / 0.5654 GB, free: 77.4 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02326/1.165, allocations: 14.4 MB / 0.5794 GB, free: 63.02 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06278/1.228, allocations: 63.6 MB / 0.6415 GB, free: 14.31 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0236/1.252, allocations: 7.901 MB / 0.6493 GB, free: 6.367 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006467/1.258, allocations: 4.585 MB / 0.6537 GB, free: 1.773 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03113/1.289, allocations: 17.47 MB / 0.6708 GB, free: 412 kB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.197e-05/1.289, allocations: 64.5 kB / 0.6709 GB, free: 340 kB / 478.1 MB Notification: Performance of pre-optimization done (n=281): time 5.691e-06/1.289, allocations: 0 / 0.6709 GB, free: 340 kB / 478.1 MB Notification: Performance of matching and sorting (n=374): time 0.2758/1.565, allocations: 72.95 MB / 0.7421 GB, free: 7.434 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000231/1.565, allocations: 372.6 kB / 0.7425 GB, free: 6.988 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01347/1.579, allocations: 6.427 MB / 0.7487 GB, free: 0.5625 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.001139/1.58, allocations: 81.98 kB / 0.7488 GB, free: 488 kB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.2322/1.812, allocations: 5.013 MB / 0.7537 GB, free: 192.2 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.001729/1.814, allocations: 1.439 MB / 0.7551 GB, free: 191.3 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003018/1.817, allocations: 1.847 MB / 0.7569 GB, free: 190.4 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 3.927e-05/1.817, allocations: 301.8 kB / 0.7572 GB, free: 190.1 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007216/1.824, allocations: 5.669 MB / 0.7627 GB, free: 188 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009297/1.833, allocations: 10.61 MB / 0.7731 GB, free: 179.3 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01664/1.85, allocations: 17.36 MB / 0.7901 GB, free: 167.2 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001315/1.85, allocations: 46.94 kB / 0.7901 GB, free: 167.2 MB / 0.545 GB Notification: Performance of matching and sorting (n=1157) (initialization): time 0.0379/1.888, allocations: 21.92 MB / 0.8115 GB, free: 147.9 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 8.622e-05/1.888, allocations: 76 kB / 0.8116 GB, free: 147.9 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000147/1.888, allocations: 172.9 kB / 0.8118 GB, free: 147.7 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01893/1.907, allocations: 6.853 MB / 0.8184 GB, free: 140.8 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006603/1.914, allocations: 2.078 MB / 0.8205 GB, free: 138.8 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03853/1.952, allocations: 36.11 MB / 0.8557 GB, free: 102.3 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008064/1.961, allocations: 0.713 MB / 0.8564 GB, free: 101.6 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001515/1.962, allocations: 0.5117 MB / 0.8569 GB, free: 101.1 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.005212/1.967, allocations: 3.423 MB / 0.8603 GB, free: 97.76 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001347/1.969, allocations: 0.6208 MB / 0.8609 GB, free: 97.13 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02763/1.996, allocations: 16.02 MB / 0.8765 GB, free: 81.04 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.72e-05/1.996, allocations: 47.59 kB / 0.8766 GB, free: 81 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.783e-05/1.996, allocations: 19.94 kB / 0.8766 GB, free: 80.98 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.659e-05/1.996, allocations: 19.92 kB / 0.8766 GB, free: 80.96 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04785/2.044, allocations: 31.2 MB / 0.9071 GB, free: 49.37 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.516e-05/2.044, allocations: 0.875 kB / 0.9071 GB, free: 49.37 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003154/2.047, allocations: 0.6045 MB / 0.9077 GB, free: 48.77 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01746/2.065, allocations: 6.437 MB / 0.914 GB, free: 42.31 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007173/2.066, allocations: 60 kB / 0.914 GB, free: 42.25 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03729/2.103, allocations: 34.33 MB / 0.9475 GB, free: 7.57 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.126e-06/2.103, allocations: 3.938 kB / 0.9476 GB, free: 7.566 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.246/2.349, allocations: 23.51 MB / 0.9705 GB, free: 170.4 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001638/2.351, allocations: 0.5807 MB / 0.9711 GB, free: 170.4 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00122/2.352, allocations: 63.28 kB / 0.9711 GB, free: 170.3 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004191/2.356, allocations: 428.5 kB / 0.9715 GB, free: 170.3 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001194/2.357, allocations: 259.3 kB / 0.9718 GB, free: 170.2 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003693/2.358, allocations: 103.3 kB / 0.9719 GB, free: 170.2 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.005147/2.363, allocations: 4.108 MB / 0.9759 GB, free: 168.8 MB / 0.545 GB Notification: Performance of sort global known variables: time 8e-08/2.363, allocations: 0 / 0.9759 GB, free: 168.8 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.008028/2.371, allocations: 2.18 MB / 0.978 GB, free: 168.6 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.03426/2.405, allocations: 24.29 MB / 1.002 GB, free: 152.8 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01794/2.423, allocations: 13.66 MB / 1.015 GB, free: 139.3 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 9.488e-06/2.423, allocations: 0 / 1.015 GB, free: 139.3 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.00848/2.431, allocations: 6.026 MB / 1.021 GB, free: 133.2 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005451/2.437, allocations: 0.9352 MB / 1.022 GB, free: 132.4 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1356/2.572, allocations: 102.9 MB / 1.122 GB, free: 21.59 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00551/2.578, allocations: 5.267 MB / 1.128 GB, free: 16.29 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.005974/2.584, allocations: 3.032 MB / 1.13 GB, free: 13.25 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004571/2.588, allocations: 3.385 MB / 1.134 GB, free: 9.863 MB / 0.545 GB Notification: Performance of SimCode: time 1.203e-06/2.588, allocations: 0 / 1.134 GB, free: 9.863 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4266/3.015, allocations: 172.3 MB / 1.302 GB, free: 65.77 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate platform static: time 27.08/30.1, allocations: 12 kB / 1.302 GB, free: 65.75 MB / 0.5607 GB " [Timeout remaining time 630] (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.43648585199844]