Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.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.001549/0.001549, allocations: 108.6 kB / 21.22 MB, free: 0.75 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.001654/0.001654, allocations: 187.8 kB / 24.5 MB, free: 4.02 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.344/1.344, allocations: 225.7 MB / 253.3 MB, free: 13.04 MB / 206.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.Fourbar2,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar2",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar2",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001489/0.001489, allocations: 47.92 kB / 371.2 MB, free: 9.953 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.219/0.2205, allocations: 52.18 MB / 423.4 MB, free: 14.64 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.01695/0.2374, allocations: 15.12 MB / 438.5 MB, free: 15.44 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.009853/0.2473, allocations: 4.861 MB / 443.4 MB, free: 10.56 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002193/0.2494, allocations: 107.5 kB / 443.5 MB, free: 10.46 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006385/0.2558, allocations: 3.227 MB / 446.7 MB, free: 7.219 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006863/0.2627, allocations: 2.631 MB / 449.4 MB, free: 4.578 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002351/0.265, allocations: 0.9905 MB / 450.4 MB, free: 3.586 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01011/0.2752, allocations: 7.001 MB / 457.4 MB, free: 12.58 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00626/0.2814, allocations: 3.582 MB / 460.9 MB, free: 8.93 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004515/0.2859, allocations: 2.266 MB / 463.2 MB, free: 6.656 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005824/0.2918, allocations: 3.52 MB / 466.7 MB, free: 3.125 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001847/0.2936, allocations: 484 kB / 467.2 MB, free: 2.652 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003869/0.2975, allocations: 1.553 MB / 468.8 MB, free: 1.098 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004037/0.3015, allocations: 2.956 MB / 471.7 MB, free: 14.13 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005328/0.3068, allocations: 3.313 MB / 475 MB, free: 10.8 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01481/0.3216, allocations: 10.62 MB / 485.6 MB, free: 140 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.795e-06/0.3216, allocations: 3.938 kB / 485.6 MB, free: 136 kB / 382.1 MB Notification: Performance of FrontEnd: time 2.585e-06/0.3217, allocations: 0 / 485.6 MB, free: 136 kB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000355/0.322, allocations: 0 / 485.6 MB, free: 136 kB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2242 * Number of variables: 2242 Notification: Performance of Generate backend data structure: time 0.01781/0.3398, allocations: 7.591 MB / 493.2 MB, free: 8.465 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.319e-05/0.3399, allocations: 15.91 kB / 493.3 MB, free: 8.449 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0001949/0.3401, allocations: 169 kB / 493.4 MB, free: 8.277 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001919/0.342, allocations: 1.141 MB / 494.6 MB, free: 7.121 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04251/0.3845, allocations: 7.551 MB / 0.4903 GB, free: 15.55 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01075/0.3952, allocations: 4.794 MB / 0.495 GB, free: 10.71 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002897/0.3955, allocations: 324 kB / 0.4953 GB, free: 10.39 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001366/0.3969, allocations: 439.7 kB / 0.4958 GB, free: 9.957 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02695/0.4238, allocations: 15.62 MB / 0.511 GB, free: 9.41 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.00016/0.424, allocations: 59.52 kB / 0.5111 GB, free: 9.352 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006357/0.4246, allocations: 207.8 kB / 0.5113 GB, free: 9.148 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005098/0.4297, allocations: 3.22 MB / 0.5144 GB, free: 5.922 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02657/0.4563, allocations: 13.91 MB / 0.528 GB, free: 7.992 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2386/0.6949, allocations: 57.03 MB / 0.5837 GB, free: 61.82 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0107/0.7056, allocations: 5.271 MB / 0.5888 GB, free: 57.43 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003163/0.7087, allocations: 3.231 MB / 0.592 GB, free: 54.19 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01499/0.7237, allocations: 12.33 MB / 0.604 GB, free: 42.1 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.508e-05/0.7238, allocations: 64.5 kB / 0.6041 GB, free: 42.03 MB / 446.1 MB Notification: Performance of pre-optimization done (n=286): time 5.119e-06/0.7238, allocations: 0 / 0.6041 GB, free: 42.03 MB / 446.1 MB Notification: Performance of matching and sorting (n=336): time 0.1283/0.8521, allocations: 41.77 MB / 0.6449 GB, free: 0.582 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.558e-05/0.8521, allocations: 214 kB / 0.6451 GB, free: 336 kB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009152/0.8613, allocations: 5.507 MB / 0.6505 GB, free: 10.95 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006734/0.862, allocations: 78.91 kB / 0.6505 GB, free: 10.86 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003703/0.8657, allocations: 4.596 MB / 0.655 GB, free: 6.465 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001728/0.8674, allocations: 1.298 MB / 0.6563 GB, free: 5.156 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002997/0.8704, allocations: 1.794 MB / 0.658 GB, free: 3.348 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.000135/0.8705, allocations: 309.1 kB / 0.6583 GB, free: 3.043 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006938/0.8775, allocations: 4.616 MB / 0.6628 GB, free: 14.42 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01151/0.889, allocations: 9.591 MB / 0.6722 GB, free: 2.375 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01947/0.9085, allocations: 15.26 MB / 0.6871 GB, free: 0.6445 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001283/0.9086, allocations: 52 kB / 0.6872 GB, free: 0.5938 MB / 494.1 MB Notification: Performance of matching and sorting (n=1148) (initialization): time 0.04421/0.9528, allocations: 18.95 MB / 0.7057 GB, free: 13.59 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.00013/0.9529, allocations: 76 kB / 0.7057 GB, free: 13.52 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002361/0.9532, allocations: 176.5 kB / 0.7059 GB, free: 13.34 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02307/0.9762, allocations: 5.773 MB / 0.7116 GB, free: 7.559 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007573/0.9838, allocations: 2.047 MB / 0.7135 GB, free: 5.508 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2306/1.214, allocations: 25.44 MB / 0.7384 GB, free: 176.1 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006943/1.221, allocations: 0.5427 MB / 0.7389 GB, free: 176.1 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001038/1.222, allocations: 0.5094 MB / 0.7394 GB, free: 176.1 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 791 * Number of states: 0 () * Number of discrete variables: 45 (fixedFrame.color_x[3],fixedFrame.color_x[2],fixedFrame.color_x[1],b3.color[3],b3.color[2],b3.color[1],universalSpherical.cylinderColor[3],universalSpherical.cylinderColor[2],universalSpherical.cylinderColor[1],universalSpherical.sphereColor[3],universalSpherical.sphereColor[2],universalSpherical.sphereColor[1],universalSpherical.rodColor[3],universalSpherical.rodColor[2],universalSpherical.rodColor[1],b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],b1.color[3],b1.color[2],b1.color[1],b1.body.sphereColor[3],b1.body.sphereColor[2],b1.body.sphereColor[1],j2.boxColor[3],j2.boxColor[2],j2.boxColor[1],j1.cylinderColor[3],j1.cylinderColor[2],j1.cylinderColor[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]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1057): * Single equations (assignments): 1049 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,42,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004219/1.227, allocations: 3.096 MB / 0.7424 GB, free: 175.4 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009528/1.228, allocations: 0.5222 MB / 0.743 GB, free: 175.4 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02684/1.254, allocations: 12.57 MB / 0.7552 GB, free: 171.4 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.615e-05/1.254, allocations: 48.12 kB / 0.7553 GB, free: 171.4 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.702e-05/1.254, allocations: 9 kB / 0.7553 GB, free: 171.4 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.625e-05/1.255, allocations: 16.41 kB / 0.7553 GB, free: 171.4 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04105/1.296, allocations: 24.14 MB / 0.7789 GB, free: 154.8 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.481e-05/1.296, allocations: 7.984 kB / 0.7789 GB, free: 154.7 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002705/1.298, allocations: 0.5733 MB / 0.7794 GB, free: 154.2 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0171/1.315, allocations: 4.81 MB / 0.7841 GB, free: 149.4 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000561/1.316, allocations: 59.98 kB / 0.7842 GB, free: 149.4 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02048/1.336, allocations: 20.71 MB / 0.8044 GB, free: 128.6 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.619e-06/1.336, allocations: 6.906 kB / 0.8044 GB, free: 128.6 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02887/1.365, allocations: 16.99 MB / 0.821 GB, free: 111.7 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001397/1.367, allocations: 482.3 kB / 0.8215 GB, free: 111.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001043/1.368, allocations: 59.58 kB / 0.8215 GB, free: 111.2 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002847/1.371, allocations: 251.6 kB / 0.8218 GB, free: 111 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006762/1.371, allocations: 205.4 kB / 0.822 GB, free: 110.8 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002502/1.372, allocations: 91.92 kB / 0.8221 GB, free: 110.7 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.003944/1.376, allocations: 3.424 MB / 0.8254 GB, free: 107.3 MB / 0.5294 GB Notification: Performance of sort global known variables: time 8e-08/1.376, allocations: 0 / 0.8254 GB, free: 107.3 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.006417/1.382, allocations: 1.709 MB / 0.8271 GB, free: 105.6 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 (251): * Single equations (assignments): 243 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,38,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.02911/1.411, allocations: 17.66 MB / 0.8443 GB, free: 87.82 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01243/1.423, allocations: 10.17 MB / 0.8543 GB, free: 77.7 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.007e-05/1.423, allocations: 0 / 0.8543 GB, free: 77.7 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.004343/1.428, allocations: 3.714 MB / 0.8579 GB, free: 73.98 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003483/1.431, allocations: 0.652 MB / 0.8585 GB, free: 73.34 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3093/1.741, allocations: 86.23 MB / 0.9427 GB, free: 187.6 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003874/1.744, allocations: 4.621 MB / 0.9472 GB, free: 186.7 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.005315/1.75, allocations: 2.982 MB / 0.9502 GB, free: 186.6 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003107/1.753, allocations: 2.919 MB / 0.953 GB, free: 185.7 MB / 0.545 GB Notification: Performance of SimCode: time 1.072e-06/1.753, allocations: 3.969 kB / 0.953 GB, free: 185.7 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1609/1.914, allocations: 130.2 MB / 1.08 GB, free: 63.94 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 39.48/41.4, allocations: 11.94 kB / 1.08 GB, free: 63.93 MB / 0.545 GB " [Timeout remaining time 618] (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar2_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar2.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar2/Fourbar2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.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: 45.43928709102329]