Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.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.001748/0.001748, allocations: 121.8 kB / 18.5 MB, free: 4.578 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.0021/0.0021, allocations: 208.9 kB / 21.46 MB, free: 1.625 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.462/1.462, allocations: 230.2 MB / 254.5 MB, free: 15.09 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.Fourbar2,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar2",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001832/0.001832, allocations: 63.91 kB / 373.3 MB, free: 10.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1006/0.1024, allocations: 53.33 MB / 426.7 MB, free: 4.984 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.2053/0.3077, allocations: 15.03 MB / 441.7 MB, free: 2.949 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.009362/0.3171, allocations: 4.844 MB / 446.5 MB, free: 200 kB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003/0.3201, allocations: 93.19 kB / 446.6 MB, free: 184 kB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007089/0.3272, allocations: 3.2 MB / 449.8 MB, free: 14.76 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007615/0.3348, allocations: 2.594 MB / 452.4 MB, free: 13.56 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00285/0.3376, allocations: 0.9817 MB / 453.4 MB, free: 13.18 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01172/0.3493, allocations: 7.045 MB / 460.5 MB, free: 9.918 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00667/0.356, allocations: 3.693 MB / 464.2 MB, free: 7.602 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004874/0.3609, allocations: 2.222 MB / 466.4 MB, free: 6.336 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006144/0.367, allocations: 3.52 MB / 469.9 MB, free: 4.207 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00207/0.3691, allocations: 483.4 kB / 470.4 MB, free: 4.207 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005086/0.3742, allocations: 1.53 MB / 471.9 MB, free: 3.629 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004973/0.3792, allocations: 2.929 MB / 474.8 MB, free: 0.8711 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006647/0.3858, allocations: 3.289 MB / 478.1 MB, free: 13.56 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01546/0.4013, allocations: 10.54 MB / 488.7 MB, free: 2.98 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.295e-06/0.4013, allocations: 3.984 kB / 488.7 MB, free: 2.977 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.4013, allocations: 4 kB / 488.7 MB, free: 2.973 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003537/0.4016, allocations: 0 / 488.7 MB, free: 2.973 MB / 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.02014/0.4218, allocations: 7.628 MB / 496.3 MB, free: 11.25 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.744e-05/0.4218, allocations: 8.031 kB / 496.3 MB, free: 11.24 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003362/0.4252, allocations: 1.136 MB / 497.4 MB, free: 10.09 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0433/0.4685, allocations: 7.547 MB / 0.4931 GB, free: 2.531 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01266/0.4811, allocations: 4.672 MB / 0.4977 GB, free: 13.79 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003621/0.4815, allocations: 319.4 kB / 0.498 GB, free: 13.48 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001924/0.4834, allocations: 427.7 kB / 0.4984 GB, free: 13.06 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03239/0.5158, allocations: 15.61 MB / 0.5137 GB, free: 12.52 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002685/0.5161, allocations: 59.56 kB / 0.5137 GB, free: 12.46 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00159/0.5177, allocations: 203.8 kB / 0.5139 GB, free: 12.26 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005589/0.5233, allocations: 3.218 MB / 0.5171 GB, free: 9.043 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02916/0.5524, allocations: 13.91 MB / 0.5306 GB, free: 11.11 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08692/0.6393, allocations: 57.18 MB / 0.5865 GB, free: 432 kB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01486/0.6542, allocations: 6.182 MB / 0.5925 GB, free: 9.984 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005305/0.6595, allocations: 3.215 MB / 0.5957 GB, free: 6.758 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0284/0.6879, allocations: 14.33 MB / 0.6097 GB, free: 7.883 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.835e-05/0.688, allocations: 60.56 kB / 0.6097 GB, free: 7.812 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=286): time 6.903e-06/0.688, allocations: 0 / 0.6097 GB, free: 7.812 MB / 0.5137 GB Notification: Performance of matching and sorting (n=336): time 0.3394/1.027, allocations: 41.91 MB / 0.6506 GB, free: 153 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.639e-05/1.027, allocations: 210.3 kB / 0.6508 GB, free: 152.8 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00623/1.034, allocations: 5.5 MB / 0.6562 GB, free: 150 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0006522/1.034, allocations: 73.45 kB / 0.6563 GB, free: 150 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.001934/1.036, allocations: 4.6 MB / 0.6608 GB, free: 146.4 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.001189/1.037, allocations: 1.295 MB / 0.662 GB, free: 145.3 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002242/1.04, allocations: 1.795 MB / 0.6638 GB, free: 144.3 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 5.038e-05/1.04, allocations: 301.1 kB / 0.6641 GB, free: 144 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005205/1.045, allocations: 4.622 MB / 0.6686 GB, free: 140.9 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006995/1.052, allocations: 9.596 MB / 0.678 GB, free: 128.9 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01283/1.065, allocations: 15.24 MB / 0.6929 GB, free: 111.2 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.469e-05/1.065, allocations: 52 kB / 0.6929 GB, free: 111.1 MB / 0.5137 GB Notification: Performance of matching and sorting (n=1148) (initialization): time 0.03438/1.099, allocations: 18.96 MB / 0.7114 GB, free: 92.11 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001025/1.099, allocations: 80.94 kB / 0.7115 GB, free: 92.03 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001671/1.1, allocations: 172 kB / 0.7117 GB, free: 91.86 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01924/1.119, allocations: 5.773 MB / 0.7173 GB, free: 86.08 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006824/1.126, allocations: 2.055 MB / 0.7193 GB, free: 84.02 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02664/1.152, allocations: 25.65 MB / 0.7443 GB, free: 58.1 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006934/1.159, allocations: 0.5501 MB / 0.7449 GB, free: 57.55 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009577/1.16, allocations: 0.507 MB / 0.7454 GB, free: 57.05 MB / 0.5137 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.004177/1.164, allocations: 3.092 MB / 0.7484 GB, free: 53.94 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009361/1.165, allocations: 0.5161 MB / 0.7489 GB, free: 53.42 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02522/1.19, allocations: 12.57 MB / 0.7612 GB, free: 40.79 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.547e-05/1.191, allocations: 55.98 kB / 0.7612 GB, free: 40.73 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.951e-05/1.191, allocations: 12 kB / 0.7612 GB, free: 40.72 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.91e-05/1.191, allocations: 12.8 kB / 0.7613 GB, free: 40.71 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04362/1.234, allocations: 24.16 MB / 0.7849 GB, free: 16.07 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.128e-05/1.234, allocations: 8.125 kB / 0.7849 GB, free: 16.06 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002836/1.237, allocations: 0.5694 MB / 0.7854 GB, free: 15.49 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01679/1.254, allocations: 4.802 MB / 0.7901 GB, free: 10.68 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008362/1.255, allocations: 61.7 kB / 0.7902 GB, free: 10.62 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02689/1.282, allocations: 20.93 MB / 0.8106 GB, free: 5.418 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.693e-06/1.282, allocations: 8 kB / 0.8106 GB, free: 5.41 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.329/1.611, allocations: 16.98 MB / 0.8272 GB, free: 158.5 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001861/1.612, allocations: 0.5547 MB / 0.8277 GB, free: 158.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00109/1.614, allocations: 55.11 kB / 0.8278 GB, free: 158.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002728/1.616, allocations: 254.9 kB / 0.828 GB, free: 158.3 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000692/1.617, allocations: 195.3 kB / 0.8282 GB, free: 158.2 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002756/1.617, allocations: 82.94 kB / 0.8283 GB, free: 158.2 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.005309/1.623, allocations: 3.421 MB / 0.8316 GB, free: 157.1 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.31e-07/1.623, allocations: 0 / 0.8316 GB, free: 157.1 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.009792/1.632, allocations: 1.685 MB / 0.8333 GB, free: 156.9 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.03319/1.666, allocations: 17.65 MB / 0.8505 GB, free: 150.5 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01303/1.679, allocations: 10.19 MB / 0.8605 GB, free: 146.8 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 9.147e-06/1.679, allocations: 0 / 0.8605 GB, free: 146.8 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.004679/1.683, allocations: 3.704 MB / 0.8641 GB, free: 145.3 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005608/1.689, allocations: 0.65 MB / 0.8647 GB, free: 145 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1344/1.823, allocations: 86.06 MB / 0.9488 GB, free: 52.86 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005444/1.829, allocations: 4.615 MB / 0.9533 GB, free: 48.23 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.005818/1.835, allocations: 2.976 MB / 0.9562 GB, free: 45.26 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003508/1.838, allocations: 2.917 MB / 0.959 GB, free: 42.34 MB / 0.5294 GB Notification: Performance of SimCode: time 1.123e-06/1.838, allocations: 0 / 0.959 GB, free: 42.34 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4944/2.332, allocations: 126.1 MB / 1.082 GB, free: 160.3 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 44.18/46.51, allocations: 18.73 kB / 1.082 GB, free: 160.3 MB / 0.5606 GB " [Timeout remaining time 613] (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar2_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar2.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar2/Fourbar2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_trunk_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: 51.27171254530549]