Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001843/0.001843, allocations: 107.6 kB / 21.18 MB, free: 472 kB / 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.0023/0.0023, allocations: 205.4 kB / 24.47 MB, free: 3.801 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.359/1.359, allocations: 207.7 MB / 235.3 MB, free: 9.82 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar2",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001735/0.001735, allocations: 59.86 kB / 347.2 MB, free: 9.898 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2406/0.2423, allocations: 49.15 MB / 396.3 MB, free: 8.879 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.01154/0.2539, allocations: 13.11 MB / 409.5 MB, free: 392 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.009985/0.2639, allocations: 4.621 MB / 414.1 MB, free: 13.43 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002788/0.2667, allocations: 108.3 kB / 414.2 MB, free: 13.4 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006265/0.2729, allocations: 3.101 MB / 417.3 MB, free: 11.42 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007305/0.2802, allocations: 2.655 MB / 419.9 MB, free: 9.543 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002547/0.2828, allocations: 0.996 MB / 420.9 MB, free: 8.887 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00946/0.2922, allocations: 6.647 MB / 427.6 MB, free: 3.844 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005293/0.2975, allocations: 3.596 MB / 431.2 MB, free: 184 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003916/0.3014, allocations: 2.274 MB / 433.5 MB, free: 13.9 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005305/0.3067, allocations: 3.38 MB / 436.8 MB, free: 10.51 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001487/0.3082, allocations: 488 kB / 437.3 MB, free: 10.03 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003537/0.3118, allocations: 1.385 MB / 438.7 MB, free: 8.645 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003964/0.3157, allocations: 2.964 MB / 441.7 MB, free: 5.672 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005486/0.3212, allocations: 2.481 MB / 444.1 MB, free: 3.176 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01465/0.3359, allocations: 10.7 MB / 454.8 MB, free: 8.426 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.594e-06/0.3359, allocations: 3.984 kB / 454.8 MB, free: 8.422 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.3359, allocations: 0 / 454.8 MB, free: 8.422 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.000308/0.3362, allocations: 0 / 454.8 MB, free: 8.422 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: 2242 * Number of variables: 2242 Notification: Performance of Generate backend data structure: time 0.01867/0.3549, allocations: 7.618 MB / 462.5 MB, free: 0.7305 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.487e-05/0.3549, allocations: 11.98 kB / 462.5 MB, free: 0.7188 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002976/0.3579, allocations: 1.129 MB / 463.6 MB, free: 15.57 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04213/0.4, allocations: 7.555 MB / 471.2 MB, free: 8.004 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01205/0.4121, allocations: 5.13 MB / 476.3 MB, free: 2.824 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003015/0.4124, allocations: 320.2 kB / 476.6 MB, free: 2.508 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001271/0.4136, allocations: 447.6 kB / 477 MB, free: 2.07 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02809/0.4417, allocations: 15.69 MB / 492.7 MB, free: 1.438 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001968/0.4419, allocations: 59.52 kB / 492.8 MB, free: 1.379 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001093/0.443, allocations: 203.8 kB / 493 MB, free: 1.18 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005384/0.4484, allocations: 3.223 MB / 496.2 MB, free: 13.95 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02836/0.4768, allocations: 13.87 MB / 0.4981 GB, free: 52 kB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08525/0.562, allocations: 54.37 MB / 0.5512 GB, free: 8.223 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01398/0.576, allocations: 5.27 MB / 0.5564 GB, free: 2.922 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.1773/0.7533, allocations: 3.224 MB / 0.5595 GB, free: 142.1 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02176/0.775, allocations: 11.69 MB / 0.5709 GB, free: 138.7 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.687e-05/0.7751, allocations: 63.05 kB / 0.571 GB, free: 138.6 MB / 478.1 MB Notification: Performance of pre-optimization done (n=286): time 7.635e-06/0.7751, allocations: 1.312 kB / 0.571 GB, free: 138.6 MB / 478.1 MB Notification: Performance of matching and sorting (n=336): time 0.1307/0.9058, allocations: 41.97 MB / 0.612 GB, free: 112.6 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.046e-05/0.9059, allocations: 210 kB / 0.6122 GB, free: 112.4 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005734/0.9116, allocations: 5.832 MB / 0.6179 GB, free: 106.8 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006435/0.9122, allocations: 76.91 kB / 0.618 GB, free: 106.7 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001801/0.9141, allocations: 4.598 MB / 0.6224 GB, free: 102.3 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001099/0.9151, allocations: 1.304 MB / 0.6237 GB, free: 101 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002003/0.9172, allocations: 1.793 MB / 0.6255 GB, free: 99.21 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 3.637e-05/0.9172, allocations: 301.1 kB / 0.6258 GB, free: 98.91 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005011/0.9222, allocations: 4.616 MB / 0.6303 GB, free: 94.29 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006997/0.9292, allocations: 9.647 MB / 0.6397 GB, free: 82.18 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01463/0.9438, allocations: 15.26 MB / 0.6546 GB, free: 64.45 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002391/0.9441, allocations: 52 kB / 0.6546 GB, free: 64.4 MB / 478.1 MB Notification: Performance of matching and sorting (n=1148) (initialization): time 0.04054/0.9846, allocations: 18.95 MB / 0.6731 GB, free: 45.4 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001044/0.9847, allocations: 84.22 kB / 0.6732 GB, free: 45.32 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001534/0.9849, allocations: 176 kB / 0.6734 GB, free: 45.14 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02098/1.006, allocations: 5.777 MB / 0.679 GB, free: 39.36 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006495/1.012, allocations: 2.047 MB / 0.681 GB, free: 37.31 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02709/1.039, allocations: 25.21 MB / 0.7057 GB, free: 11.86 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006801/1.046, allocations: 0.5536 MB / 0.7062 GB, free: 11.3 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00108/1.047, allocations: 0.5 MB / 0.7067 GB, free: 10.8 MB / 478.1 MB 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.00416/1.051, allocations: 3.099 MB / 0.7097 GB, free: 7.691 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009589/1.052, allocations: 0.5238 MB / 0.7102 GB, free: 7.164 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03019/1.083, allocations: 12.57 MB / 0.7225 GB, free: 10.53 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.793e-05/1.083, allocations: 56 kB / 0.7225 GB, free: 10.47 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.441e-05/1.083, allocations: 15.98 kB / 0.7226 GB, free: 10.46 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.431e-05/1.083, allocations: 15.95 kB / 0.7226 GB, free: 10.44 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.23/1.313, allocations: 23 MB / 0.745 GB, free: 153.8 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.53e-05/1.313, allocations: 5.156 kB / 0.745 GB, free: 153.8 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003166/1.316, allocations: 0.5742 MB / 0.7456 GB, free: 153.8 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02006/1.336, allocations: 4.809 MB / 0.7503 GB, free: 153.8 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007031/1.337, allocations: 58.92 kB / 0.7504 GB, free: 153.8 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02368/1.36, allocations: 20.51 MB / 0.7704 GB, free: 145 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.971e-06/1.36, allocations: 10.66 kB / 0.7704 GB, free: 145 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03094/1.391, allocations: 16.98 MB / 0.787 GB, free: 139.1 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003327/1.395, allocations: 1.176 MB / 0.7881 GB, free: 138.7 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00111/1.396, allocations: 63.12 kB / 0.7882 GB, free: 138.6 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002981/1.399, allocations: 256.3 kB / 0.7884 GB, free: 138.5 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006407/1.399, allocations: 200.6 kB / 0.7886 GB, free: 138.4 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002526/1.4, allocations: 81.22 kB / 0.7887 GB, free: 138.4 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.004448/1.404, allocations: 3.45 MB / 0.7921 GB, free: 136.6 MB / 0.4981 GB Notification: Performance of sort global known variables: time 8e-08/1.404, allocations: 7.656 kB / 0.7921 GB, free: 136.6 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.007271/1.411, allocations: 1.712 MB / 0.7938 GB, free: 136.5 MB / 0.4981 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.03166/1.443, allocations: 17.65 MB / 0.811 GB, free: 119.2 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0138/1.457, allocations: 10.18 MB / 0.8209 GB, free: 109.1 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.188e-05/1.457, allocations: 0 / 0.8209 GB, free: 109.1 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.005077/1.462, allocations: 3.716 MB / 0.8246 GB, free: 105.4 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004266/1.466, allocations: 0.6435 MB / 0.8252 GB, free: 104.8 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1274/1.594, allocations: 86.4 MB / 0.9096 GB, free: 10.92 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005177/1.599, allocations: 4.128 MB / 0.9136 GB, free: 6.754 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.006329/1.605, allocations: 2.983 MB / 0.9165 GB, free: 3.766 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003569/1.609, allocations: 2.921 MB / 0.9194 GB, free: 0.8438 MB / 0.4981 GB Notification: Performance of SimCode: time 9.92e-07/1.609, allocations: 0 / 0.9194 GB, free: 0.8438 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4224/2.031, allocations: 127.9 MB / 1.044 GB, free: 86.67 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.52/21.55, allocations: 0 / 1.044 GB, free: 86.67 MB / 0.5137 GB " [Timeout remaining time 638] (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar2_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar2.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar2/Fourbar2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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: 24.89721690211445]