Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001551/0.001551, allocations: 111.1 kB / 20.44 MB, free: 1.176 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001643/0.001643, allocations: 208.1 kB / 23.73 MB, free: 4.379 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.415/1.415, allocations: 230.6 MB / 257.5 MB, free: 7.793 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar2",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001618/0.001618, allocations: 55.92 kB / 377.7 MB, free: 2.945 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2682/0.2698, allocations: 53.36 MB / 431.1 MB, free: 6.637 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.01654/0.2864, allocations: 13.01 MB / 444.1 MB, free: 9.57 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01078/0.2971, allocations: 4.622 MB / 448.7 MB, free: 4.938 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002859/0.3, allocations: 107.5 kB / 448.8 MB, free: 4.832 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006738/0.3067, allocations: 3.095 MB / 451.9 MB, free: 1.727 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008181/0.3149, allocations: 2.611 MB / 454.5 MB, free: 15.1 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002683/0.3176, allocations: 0.9944 MB / 455.5 MB, free: 14.11 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01072/0.3283, allocations: 7.047 MB / 462.6 MB, free: 7.051 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004938/0.3332, allocations: 3.575 MB / 466.1 MB, free: 3.406 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004633/0.3379, allocations: 2.254 MB / 468.4 MB, free: 1.145 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006007/0.3439, allocations: 3.52 MB / 471.9 MB, free: 13.61 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001404/0.3453, allocations: 484 kB / 472.4 MB, free: 13.14 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003005/0.3483, allocations: 1.393 MB / 473.8 MB, free: 11.75 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003318/0.3516, allocations: 2.937 MB / 476.7 MB, free: 8.801 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004347/0.356, allocations: 2.434 MB / 479.2 MB, free: 6.352 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01335/0.3693, allocations: 10.6 MB / 489.8 MB, free: 11.71 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.556e-06/0.3693, allocations: 0 / 489.8 MB, free: 11.71 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.744e-06/0.3693, allocations: 0 / 489.8 MB, free: 11.71 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0003131/0.3696, allocations: 4 kB / 489.8 MB, free: 11.7 MB / 398.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.01969/0.3893, allocations: 7.54 MB / 497.3 MB, free: 4.086 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.076e-05/0.3894, allocations: 12.03 kB / 497.3 MB, free: 4.074 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003238/0.3926, allocations: 1.137 MB / 498.5 MB, free: 2.922 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04265/0.4353, allocations: 7.547 MB / 0.4941 GB, free: 11.36 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01234/0.4476, allocations: 4.599 MB / 0.4986 GB, free: 6.707 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003338/0.4479, allocations: 328.1 kB / 0.4989 GB, free: 6.383 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001883/0.4498, allocations: 431.7 kB / 0.4994 GB, free: 5.961 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02842/0.4782, allocations: 15.69 MB / 0.5147 GB, free: 5.328 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001778/0.4784, allocations: 63.52 kB / 0.5147 GB, free: 5.266 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006426/0.4791, allocations: 203.8 kB / 0.5149 GB, free: 5.066 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004967/0.484, allocations: 3.223 MB / 0.5181 GB, free: 1.84 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02682/0.5109, allocations: 13.87 MB / 0.5316 GB, free: 3.949 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2595/0.7704, allocations: 54.33 MB / 0.5847 GB, free: 54.48 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0109/0.7813, allocations: 5.272 MB / 0.5898 GB, free: 49.2 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003212/0.7845, allocations: 3.223 MB / 0.593 GB, free: 45.96 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01765/0.8021, allocations: 11.68 MB / 0.6044 GB, free: 34.52 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.1e-05/0.8022, allocations: 60.5 kB / 0.6044 GB, free: 34.46 MB / 446.1 MB Notification: Performance of pre-optimization done (n=286): time 5.921e-06/0.8022, allocations: 0 / 0.6044 GB, free: 34.46 MB / 446.1 MB Notification: Performance of matching and sorting (n=336): time 0.1255/0.9277, allocations: 41.86 MB / 0.6453 GB, free: 8.988 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00015/0.9279, allocations: 214 kB / 0.6455 GB, free: 8.734 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007631/0.9355, allocations: 5.787 MB / 0.6512 GB, free: 3.176 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006407/0.9361, allocations: 73.7 kB / 0.6512 GB, free: 3.098 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003298/0.9394, allocations: 4.6 MB / 0.6557 GB, free: 14.58 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001594/0.941, allocations: 1.294 MB / 0.657 GB, free: 13.28 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002632/0.9436, allocations: 1.782 MB / 0.6587 GB, free: 11.48 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001238/0.9438, allocations: 309.1 kB / 0.659 GB, free: 11.18 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006498/0.9503, allocations: 4.616 MB / 0.6635 GB, free: 6.551 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01063/0.9609, allocations: 9.645 MB / 0.673 GB, free: 10.44 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0197/0.9806, allocations: 15.26 MB / 0.6879 GB, free: 8.711 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001478/0.9808, allocations: 48 kB / 0.6879 GB, free: 8.664 MB / 0.4981 GB Notification: Performance of matching and sorting (n=1148) (initialization): time 0.04301/1.024, allocations: 18.96 MB / 0.7064 GB, free: 5.656 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001267/1.024, allocations: 80 kB / 0.7065 GB, free: 5.578 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002023/1.024, allocations: 172 kB / 0.7067 GB, free: 5.41 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02192/1.046, allocations: 5.774 MB / 0.7123 GB, free: 15.62 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00739/1.053, allocations: 2.055 MB / 0.7143 GB, free: 13.57 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0357/1.089, allocations: 25.23 MB / 0.7389 GB, free: 4.09 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006589/1.096, allocations: 0.5423 MB / 0.7395 GB, free: 3.547 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001178/1.097, allocations: 0.5039 MB / 0.74 GB, free: 3.043 MB / 0.545 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.1983/1.295, allocations: 3.085 MB / 0.743 GB, free: 189.2 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00148/1.297, allocations: 0.5166 MB / 0.7435 GB, free: 189.2 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02849/1.325, allocations: 12.57 MB / 0.7558 GB, free: 187 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.963e-05/1.325, allocations: 57.31 kB / 0.7558 GB, free: 187 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.609e-05/1.325, allocations: 11.97 kB / 0.7558 GB, free: 187 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.228e-05/1.325, allocations: 15.83 kB / 0.7558 GB, free: 187 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04445/1.37, allocations: 23 MB / 0.7783 GB, free: 173.8 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.78e-05/1.37, allocations: 4 kB / 0.7783 GB, free: 173.8 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002938/1.373, allocations: 0.5772 MB / 0.7789 GB, free: 173.2 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01735/1.39, allocations: 4.803 MB / 0.7836 GB, free: 168.5 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007245/1.391, allocations: 59.69 kB / 0.7836 GB, free: 168.4 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02084/1.412, allocations: 20.51 MB / 0.8036 GB, free: 147.8 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.2e-06/1.412, allocations: 15.5 kB / 0.8037 GB, free: 147.8 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02884/1.44, allocations: 16.98 MB / 0.8202 GB, free: 130.9 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001316/1.442, allocations: 486.9 kB / 0.8207 GB, free: 130.7 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009728/1.443, allocations: 63.09 kB / 0.8208 GB, free: 130.6 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002696/1.445, allocations: 267.3 kB / 0.821 GB, free: 130.4 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007599/1.446, allocations: 197.5 kB / 0.8212 GB, free: 130.2 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002745/1.446, allocations: 83.98 kB / 0.8213 GB, free: 130.1 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.004351/1.451, allocations: 3.42 MB / 0.8246 GB, free: 126.7 MB / 0.545 GB Notification: Performance of sort global known variables: time 7e-08/1.451, allocations: 0 / 0.8246 GB, free: 126.7 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.007667/1.458, allocations: 1.682 MB / 0.8263 GB, free: 125 MB / 0.545 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.02935/1.488, allocations: 17.66 MB / 0.8435 GB, free: 107.2 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01316/1.501, allocations: 10.18 MB / 0.8535 GB, free: 97.1 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.314e-05/1.501, allocations: 0 / 0.8535 GB, free: 97.1 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.004436/1.505, allocations: 3.708 MB / 0.8571 GB, free: 93.38 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003424/1.509, allocations: 0.6489 MB / 0.8577 GB, free: 92.75 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1124/1.621, allocations: 86.19 MB / 0.9419 GB, free: 14.79 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006168/1.627, allocations: 4.119 MB / 0.9459 GB, free: 10.62 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.192/1.819, allocations: 2.976 MB / 0.9488 GB, free: 200.3 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004469/1.824, allocations: 2.909 MB / 0.9517 GB, free: 200.3 MB / 0.5606 GB Notification: Performance of SimCode: time 1.052e-06/1.824, allocations: 1.375 kB / 0.9517 GB, free: 200.3 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1581/1.982, allocations: 127.5 MB / 1.076 GB, free: 92.78 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.56/20.54, allocations: 3.266 kB / 1.076 GB, free: 92.78 MB / 0.5606 GB " [Timeout remaining time 639] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar2_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar2.fmu > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar2/Fourbar2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.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: 23.87796556201647]