Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001272/0.001272, allocations: 125 kB / 17.79 MB, free: 5.121 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00132/0.00132, allocations: 190.9 kB / 20.73 MB, free: 2.184 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.422/1.422, allocations: 225.6 MB / 249.1 MB, free: 3.613 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.Fourbar_analytic,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar_analytic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar_analytic",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001495/0.001495, allocations: 51.92 kB / 365.6 MB, free: 0.8281 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09871/0.1002, allocations: 52.14 MB / 417.8 MB, free: 12.59 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic): time 0.01568/0.1159, allocations: 13.55 MB / 431.3 MB, free: 14.98 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.009819/0.1257, allocations: 4.884 MB / 436.2 MB, free: 10.09 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001801/0.1275, allocations: 87.75 kB / 436.3 MB, free: 10 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007577/0.1351, allocations: 4.245 MB / 440.5 MB, free: 5.742 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005681/0.1408, allocations: 2.206 MB / 442.8 MB, free: 3.531 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002537/0.1433, allocations: 1.103 MB / 443.9 MB, free: 2.426 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.2171/0.3603, allocations: 5.955 MB / 449.8 MB, free: 8.309 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007143/0.3675, allocations: 4.418 MB / 454.2 MB, free: 7.984 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004821/0.3723, allocations: 2.164 MB / 456.4 MB, free: 7.836 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005721/0.378, allocations: 3.085 MB / 459.5 MB, free: 7.559 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001966/0.38, allocations: 0.4958 MB / 460 MB, free: 7.555 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004533/0.3845, allocations: 1.69 MB / 461.7 MB, free: 7.555 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004403/0.3889, allocations: 2.667 MB / 464.3 MB, free: 7.266 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006103/0.395, allocations: 2.959 MB / 467.3 MB, free: 5.375 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01447/0.4095, allocations: 9.711 MB / 477 MB, free: 0.8555 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.334e-06/0.4095, allocations: 1.562 kB / 477 MB, free: 0.8555 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.534e-06/0.4095, allocations: 4 kB / 477 MB, free: 0.8516 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0003683/0.4099, allocations: 0 / 477 MB, free: 0.8516 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1743 * Number of variables: 1743 Notification: Performance of Generate backend data structure: time 0.02009/0.43, allocations: 6.362 MB / 483.4 MB, free: 12.55 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.777e-05/0.43, allocations: 9.062 kB / 483.4 MB, free: 12.55 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003051/0.4331, allocations: 0.9251 MB / 484.3 MB, free: 11.98 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03539/0.4685, allocations: 6.054 MB / 490.4 MB, free: 9 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01259/0.4811, allocations: 4.484 MB / 494.8 MB, free: 4.809 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003073/0.4814, allocations: 304.3 kB / 495.1 MB, free: 4.543 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002087/0.4834, allocations: 447.9 kB / 495.6 MB, free: 4.141 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02945/0.5129, allocations: 12.31 MB / 0.496 GB, free: 7.293 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001815/0.5131, allocations: 53.88 kB / 0.496 GB, free: 7.262 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005758/0.5137, allocations: 197.2 kB / 0.4962 GB, free: 7.105 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003363/0.517, allocations: 2.027 MB / 0.4982 GB, free: 5.102 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02387/0.5409, allocations: 10.35 MB / 0.5083 GB, free: 10.93 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06575/0.6066, allocations: 44 MB / 0.5513 GB, free: 14.34 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01295/0.6196, allocations: 4.646 MB / 0.5558 GB, free: 9.562 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00288/0.6225, allocations: 1.838 MB / 0.5576 GB, free: 7.719 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0139/0.6364, allocations: 7.018 MB / 0.5645 GB, free: 0.4922 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.328e-05/0.6364, allocations: 50.66 kB / 0.5645 GB, free: 448 kB / 462.1 MB Notification: Performance of pre-optimization done (n=179): time 4.709e-06/0.6364, allocations: 4 kB / 0.5645 GB, free: 444 kB / 462.1 MB Notification: Performance of matching and sorting (n=223): time 0.06501/0.7014, allocations: 19.36 MB / 0.5834 GB, free: 13.11 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001633/0.7016, allocations: 213 kB / 0.5836 GB, free: 12.86 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0079/0.7095, allocations: 4.494 MB / 0.588 GB, free: 8.355 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005113/0.71, allocations: 64.48 kB / 0.5881 GB, free: 8.293 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003232/0.7132, allocations: 3.701 MB / 0.5917 GB, free: 4.602 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001214/0.7145, allocations: 0.8714 MB / 0.5925 GB, free: 3.742 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001831/0.7163, allocations: 1.277 MB / 0.5938 GB, free: 2.457 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001322/0.7164, allocations: 305.1 kB / 0.5941 GB, free: 2.156 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003473/0.7199, allocations: 2.226 MB / 0.5962 GB, free: 15.93 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006671/0.7266, allocations: 5.977 MB / 0.6021 GB, free: 8.156 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01202/0.7386, allocations: 8.912 MB / 0.6108 GB, free: 13.52 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000139/0.7387, allocations: 36 kB / 0.6108 GB, free: 13.48 MB / 0.5137 GB Notification: Performance of matching and sorting (n=830) (initialization): time 0.01938/0.7581, allocations: 9.052 MB / 0.6197 GB, free: 4.422 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001088/0.7582, allocations: 60 kB / 0.6197 GB, free: 4.363 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001598/0.7584, allocations: 132 kB / 0.6198 GB, free: 4.234 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003777/0.7621, allocations: 1.206 MB / 0.621 GB, free: 3.023 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004769/0.7669, allocations: 1.419 MB / 0.6224 GB, free: 1.602 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01225/0.7792, allocations: 8.013 MB / 0.6302 GB, free: 9.461 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004812/0.784, allocations: 335.6 kB / 0.6305 GB, free: 9.133 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001073/0.785, allocations: 384 kB / 0.6309 GB, free: 8.758 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 599 * Number of states: 0 () * Number of discrete variables: 46 (jointSSP.prismatic.positiveBranch,b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],jointSSP.rod2Color[3],jointSSP.rod2Color[2],jointSSP.rod2Color[1],jointSSP.sphereColor[3],jointSSP.sphereColor[2],jointSSP.sphereColor[1],jointSSP.rod1Color[3],jointSSP.rod1Color[2],jointSSP.rod1Color[1],jointSSP.rod1.massColor[3],jointSSP.rod1.massColor[2],jointSSP.rod1.massColor[1],jointSSP.boxColor[3],jointSSP.boxColor[2],jointSSP.boxColor[1],b3.color[3],b3.color[2],b3.color[1],b1.color[3],b1.color[2],b1.color[1],b1.body.sphereColor[3],b1.body.sphereColor[2],b1.body.sphereColor[1],j1.cylinderColor[3],j1.cylinderColor[2],j1.cylinderColor[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],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (766): * Single equations (assignments): 762 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,40,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.005393/0.7904, allocations: 2.486 MB / 0.6333 GB, free: 6.258 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001094/0.7915, allocations: 433.1 kB / 0.6338 GB, free: 5.832 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008612/0.8001, allocations: 3.865 MB / 0.6375 GB, free: 1.953 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.107e-05/0.8002, allocations: 24 kB / 0.6376 GB, free: 1.93 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.034e-05/0.8002, allocations: 8 kB / 0.6376 GB, free: 1.922 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.216e-05/0.8002, allocations: 7.969 kB / 0.6376 GB, free: 1.914 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2405/1.041, allocations: 9.935 MB / 0.6473 GB, free: 178.2 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.461e-05/1.041, allocations: 5.812 kB / 0.6473 GB, free: 178.2 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001481/1.042, allocations: 327.8 kB / 0.6476 GB, free: 178.2 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003237/1.045, allocations: 0.9908 MB / 0.6486 GB, free: 178 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002906/1.046, allocations: 45.02 kB / 0.6486 GB, free: 178 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009607/1.055, allocations: 6.675 MB / 0.6551 GB, free: 174.6 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.077e-06/1.055, allocations: 10.34 kB / 0.6551 GB, free: 174.6 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01141/1.067, allocations: 6.61 MB / 0.6616 GB, free: 171.9 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001323/1.068, allocations: 475.9 kB / 0.662 GB, free: 171.8 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004588/1.069, allocations: 40.28 kB / 0.6621 GB, free: 171.8 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001487/1.07, allocations: 107.5 kB / 0.6622 GB, free: 171.8 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003736/1.07, allocations: 150.1 kB / 0.6623 GB, free: 171.8 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001373/1.071, allocations: 62.05 kB / 0.6624 GB, free: 171.7 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.003766/1.074, allocations: 2.83 MB / 0.6651 GB, free: 170.8 MB / 0.5294 GB Notification: Performance of sort global known variables: time 8e-08/1.074, allocations: 1.781 kB / 0.6651 GB, free: 170.8 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.005001/1.079, allocations: 1.178 MB / 0.6663 GB, free: 170.7 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 2 (j1.phi,j1.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 (173): * Single equations (assignments): 169 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,30,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.008816/1.088, allocations: 7.326 MB / 0.6734 GB, free: 167.5 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.006997/1.095, allocations: 5.318 MB / 0.6786 GB, free: 165.6 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.188e-05/1.095, allocations: 0 / 0.6786 GB, free: 165.6 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.002208/1.097, allocations: 1.699 MB / 0.6803 GB, free: 164.9 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003233/1.101, allocations: 0.5861 MB / 0.6809 GB, free: 164.6 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06025/1.161, allocations: 51.45 MB / 0.7311 GB, free: 110 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003582/1.164, allocations: 3.871 MB / 0.7349 GB, free: 106.1 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.003957/1.168, allocations: 1.944 MB / 0.7368 GB, free: 104.2 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00277/1.171, allocations: 2.287 MB / 0.739 GB, free: 101.9 MB / 0.5294 GB Notification: Performance of SimCode: time 1.403e-06/1.171, allocations: 0 / 0.739 GB, free: 101.9 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1267/1.298, allocations: 84.49 MB / 0.8215 GB, free: 17.91 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 26.81/28.1, allocations: 9.141 kB / 0.8216 GB, free: 17.9 MB / 0.5294 GB " [Timeout remaining time 632] (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar_analytic_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar_analytic.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar_analytic/Fourbar_analytic.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 31.571412986144423]