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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001057/0.001057, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001049/0.001049, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.293/1.293, allocations: 227.4 MB / 246.8 MB, free: 10.62 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001302/0.001302, allocations: 66.11 kB / 307.1 MB, free: 0.5508 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09146/0.09279, allocations: 50.53 MB / 357.6 MB, free: 14.03 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.194/0.2869, allocations: 14.97 MB / 372.5 MB, free: 9.141 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.009827/0.2967, allocations: 4.829 MB / 377.4 MB, free: 8.969 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003037/0.2998, allocations: 91.88 kB / 377.5 MB, free: 8.953 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00633/0.3062, allocations: 3.167 MB / 380.6 MB, free: 8.102 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006947/0.3132, allocations: 2.506 MB / 383.1 MB, free: 7.215 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002528/0.3157, allocations: 0.9898 MB / 384.1 MB, free: 6.875 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.009863/0.3256, allocations: 7.033 MB / 391.2 MB, free: 4.215 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00595/0.3316, allocations: 4.34 MB / 395.5 MB, free: 1.754 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003781/0.3354, allocations: 2.211 MB / 397.7 MB, free: 0.6484 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004373/0.3398, allocations: 3.231 MB / 400.9 MB, free: 14.88 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001542/0.3414, allocations: 484 kB / 401.4 MB, free: 14.41 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00369/0.3451, allocations: 1.478 MB / 402.9 MB, free: 12.98 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003614/0.3487, allocations: 2.838 MB / 405.7 MB, free: 10.15 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005031/0.3538, allocations: 3.281 MB / 409 MB, free: 6.867 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01208/0.3659, allocations: 10.12 MB / 419.1 MB, free: 12.98 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.979e-06/0.3659, allocations: 0 / 419.1 MB, free: 12.98 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.3659, allocations: 4 kB / 419.1 MB, free: 12.97 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0003802/0.3663, allocations: 0 / 419.1 MB, free: 12.97 MB / 334.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.02129/0.3876, allocations: 7.44 MB / 426.6 MB, free: 5.609 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.065e-05/0.3877, allocations: 12.03 kB / 426.6 MB, free: 5.598 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003128/0.3908, allocations: 1.143 MB / 427.7 MB, free: 4.496 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04526/0.4361, allocations: 7.511 MB / 435.2 MB, free: 12.97 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01113/0.4473, allocations: 4.57 MB / 439.8 MB, free: 8.387 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003328/0.4477, allocations: 318.3 kB / 440.1 MB, free: 8.129 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001915/0.4496, allocations: 439.8 kB / 440.6 MB, free: 7.758 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02876/0.4784, allocations: 15.61 MB / 456.2 MB, free: 7.398 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002824/0.4787, allocations: 63.36 kB / 456.2 MB, free: 7.336 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001902/0.4806, allocations: 207.3 kB / 456.4 MB, free: 7.191 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005373/0.486, allocations: 3.217 MB / 459.6 MB, free: 3.988 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02756/0.5136, allocations: 13.9 MB / 473.5 MB, free: 6.07 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08212/0.5957, allocations: 57.35 MB / 0.5184 GB, free: 11.26 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01458/0.6104, allocations: 6.494 MB / 0.5248 GB, free: 4.508 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005086/0.6155, allocations: 3.57 MB / 0.5283 GB, free: 0.9219 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2027/0.8182, allocations: 14.32 MB / 0.5423 GB, free: 133.8 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.014e-05/0.8183, allocations: 62.97 kB / 0.5423 GB, free: 133.7 MB / 446.1 MB Notification: Performance of pre-optimization done (n=286): time 5.701e-06/0.8183, allocations: 0 / 0.5423 GB, free: 133.7 MB / 446.1 MB Notification: Performance of matching and sorting (n=336): time 0.148/0.9663, allocations: 41.59 MB / 0.5829 GB, free: 109.9 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.642e-05/0.9665, allocations: 217.9 kB / 0.5831 GB, free: 109.6 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009118/0.9756, allocations: 5.486 MB / 0.5885 GB, free: 104.1 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0009984/0.9766, allocations: 73.7 kB / 0.5886 GB, free: 104.1 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002655/0.9793, allocations: 4.418 MB / 0.5929 GB, free: 99.63 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00181/0.9811, allocations: 1.246 MB / 0.5941 GB, free: 98.4 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003448/0.9846, allocations: 1.78 MB / 0.5958 GB, free: 96.61 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 6.289e-05/0.9847, allocations: 301.1 kB / 0.5961 GB, free: 96.31 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005661/0.9903, allocations: 4.616 MB / 0.6006 GB, free: 91.69 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009392/0.9998, allocations: 9.595 MB / 0.61 GB, free: 79.65 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01615/1.016, allocations: 15.26 MB / 0.6249 GB, free: 61.92 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001378/1.016, allocations: 48 kB / 0.6249 GB, free: 61.88 MB / 446.1 MB Notification: Performance of matching and sorting (n=1148) (initialization): time 0.04427/1.06, allocations: 18.96 MB / 0.6435 GB, free: 42.87 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002562/1.061, allocations: 80 kB / 0.6435 GB, free: 42.79 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003405/1.061, allocations: 176 kB / 0.6437 GB, free: 42.62 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02234/1.083, allocations: 5.785 MB / 0.6494 GB, free: 36.82 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007207/1.091, allocations: 2.047 MB / 0.6514 GB, free: 34.77 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03051/1.121, allocations: 25.65 MB / 0.6764 GB, free: 8.844 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009655/1.131, allocations: 0.5499 MB / 0.6769 GB, free: 8.293 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002028/1.133, allocations: 0.5 MB / 0.6774 GB, free: 7.793 MB / 446.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.006957/1.14, allocations: 3.107 MB / 0.6805 GB, free: 4.68 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001704/1.142, allocations: 0.4936 MB / 0.6809 GB, free: 4.18 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2482/1.39, allocations: 12.59 MB / 0.6932 GB, free: 137.6 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001377/1.39, allocations: 54.16 kB / 0.6933 GB, free: 137.6 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.985e-05/1.39, allocations: 8.656 kB / 0.6933 GB, free: 137.6 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.956e-05/1.39, allocations: 15.64 kB / 0.6933 GB, free: 137.6 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06163/1.452, allocations: 24.25 MB / 0.717 GB, free: 129.6 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.012e-05/1.452, allocations: 8.438 kB / 0.717 GB, free: 129.6 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003147/1.455, allocations: 0.5706 MB / 0.7176 GB, free: 129.6 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01983/1.475, allocations: 4.812 MB / 0.7223 GB, free: 128.9 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008286/1.476, allocations: 59.48 kB / 0.7223 GB, free: 128.9 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0244/1.5, allocations: 20.91 MB / 0.7427 GB, free: 116.9 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.422e-06/1.5, allocations: 7.875 kB / 0.7427 GB, free: 116.8 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03658/1.537, allocations: 16.98 MB / 0.7593 GB, free: 102.1 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001867/1.539, allocations: 0.5253 MB / 0.7598 GB, free: 101.8 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00205/1.541, allocations: 59.94 kB / 0.7599 GB, free: 101.7 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004181/1.545, allocations: 259.2 kB / 0.7601 GB, free: 101.5 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00126/1.546, allocations: 189.6 kB / 0.7603 GB, free: 101.3 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006695/1.547, allocations: 91.91 kB / 0.7604 GB, free: 101.2 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.006446/1.554, allocations: 3.425 MB / 0.7638 GB, free: 97.83 MB / 462.1 MB Notification: Performance of sort global known variables: time 7.52e-07/1.554, allocations: 0 / 0.7638 GB, free: 97.83 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.00967/1.563, allocations: 1.677 MB / 0.7654 GB, free: 96.16 MB / 462.1 MB 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.0371/1.6, allocations: 17.66 MB / 0.7826 GB, free: 78.59 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.02357/1.624, allocations: 15.26 MB / 0.7975 GB, free: 63.42 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.294e-05/1.624, allocations: 0 / 0.7975 GB, free: 63.42 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006233/1.63, allocations: 4.016 MB / 0.8015 GB, free: 59.4 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007268/1.638, allocations: 0.6468 MB / 0.8021 GB, free: 58.78 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4236/2.061, allocations: 98.18 MB / 0.898 GB, free: 129.7 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006338/2.068, allocations: 4.621 MB / 0.9025 GB, free: 128.1 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.007596/2.075, allocations: 2.972 MB / 0.9054 GB, free: 128 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00581/2.081, allocations: 2.914 MB / 0.9082 GB, free: 125.6 MB / 478.1 MB Notification: Performance of SimCode: time 2.134e-06/2.081, allocations: 0 / 0.9082 GB, free: 125.6 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9215/3.003, allocations: 130.4 MB / 1.036 GB, free: 138.6 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.33/18.33, allocations: 5.828 kB / 1.036 GB, free: 138.6 MB / 478.1 MB (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 --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) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches