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.001542/0.001542, allocations: 118.8 kB / 17.79 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001818/0.001818, allocations: 201.2 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.353/1.353, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001308/0.001308, allocations: 59.91 kB / 358.2 MB, free: 13.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2686/0.2699, allocations: 50.56 MB / 408.8 MB, free: 1.656 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.01567/0.2857, allocations: 14.96 MB / 423.7 MB, free: 2.621 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01038/0.2961, allocations: 4.819 MB / 428.5 MB, free: 13.79 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002845/0.299, allocations: 91.75 kB / 428.6 MB, free: 13.7 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006184/0.3052, allocations: 3.157 MB / 431.8 MB, free: 10.53 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006459/0.3117, allocations: 2.506 MB / 434.3 MB, free: 8.016 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002401/0.3141, allocations: 0.9905 MB / 435.3 MB, free: 7.023 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.009842/0.324, allocations: 7.05 MB / 442.3 MB, free: 15.96 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006201/0.3303, allocations: 4.322 MB / 446.7 MB, free: 11.57 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004056/0.3343, allocations: 2.215 MB / 448.9 MB, free: 9.344 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004854/0.3392, allocations: 3.236 MB / 452.1 MB, free: 6.098 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001644/0.3409, allocations: 484 kB / 452.6 MB, free: 5.625 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003459/0.3444, allocations: 1.486 MB / 454.1 MB, free: 4.137 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003723/0.3481, allocations: 2.86 MB / 456.9 MB, free: 1.27 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00584/0.354, allocations: 3.281 MB / 460.2 MB, free: 13.96 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01227/0.3663, allocations: 10.5 MB / 470.7 MB, free: 3.438 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.773e-06/0.3663, allocations: 3.938 kB / 470.7 MB, free: 3.434 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.3663, allocations: 0 / 470.7 MB, free: 3.434 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003292/0.3667, allocations: 0 / 470.7 MB, free: 3.434 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.01719/0.3839, allocations: 7.44 MB / 478.2 MB, free: 11.91 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.451e-05/0.3839, allocations: 11.97 kB / 478.2 MB, free: 11.9 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002155/0.3861, allocations: 1.133 MB / 479.3 MB, free: 10.75 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04125/0.4274, allocations: 7.508 MB / 486.8 MB, free: 3.223 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01239/0.4398, allocations: 4.642 MB / 491.4 MB, free: 14.52 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000361/0.4402, allocations: 324.2 kB / 491.8 MB, free: 14.2 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002228/0.4424, allocations: 435.6 kB / 492.2 MB, free: 13.77 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02682/0.4693, allocations: 15.61 MB / 0.4959 GB, free: 13.23 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001388/0.4694, allocations: 59.47 kB / 0.496 GB, free: 13.17 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005764/0.47, allocations: 199.8 kB / 0.4961 GB, free: 12.98 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004705/0.4747, allocations: 3.216 MB / 0.4993 GB, free: 9.758 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02681/0.5016, allocations: 13.91 MB / 0.5129 GB, free: 11.82 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.273/0.7746, allocations: 57.09 MB / 0.5686 GB, free: 85.83 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01164/0.7863, allocations: 6.488 MB / 0.575 GB, free: 82.99 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003528/0.7899, allocations: 3.568 MB / 0.5784 GB, free: 81.57 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01706/0.807, allocations: 14.3 MB / 0.5924 GB, free: 72.33 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.595e-05/0.8071, allocations: 57.78 kB / 0.5925 GB, free: 72.27 MB / 462.1 MB Notification: Performance of pre-optimization done (n=286): time 5.631e-06/0.8071, allocations: 1.969 kB / 0.5925 GB, free: 72.27 MB / 462.1 MB Notification: Performance of matching and sorting (n=336): time 0.1246/0.9317, allocations: 41.63 MB / 0.6331 GB, free: 30.76 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.291e-05/0.9318, allocations: 217.4 kB / 0.6333 GB, free: 30.51 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005816/0.9377, allocations: 5.486 MB / 0.6387 GB, free: 25.04 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006999/0.9384, allocations: 69.7 kB / 0.6387 GB, free: 24.96 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001754/0.9402, allocations: 4.412 MB / 0.643 GB, free: 20.55 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001122/0.9413, allocations: 1.247 MB / 0.6443 GB, free: 19.32 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001963/0.9433, allocations: 1.777 MB / 0.646 GB, free: 17.52 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 5.333e-05/0.9433, allocations: 305.1 kB / 0.6463 GB, free: 17.22 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005032/0.9484, allocations: 4.616 MB / 0.6508 GB, free: 12.6 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00668/0.9551, allocations: 9.597 MB / 0.6602 GB, free: 0.5703 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0182/0.9733, allocations: 15.26 MB / 0.6751 GB, free: 14.84 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001415/0.9735, allocations: 52 kB / 0.6751 GB, free: 14.79 MB / 494.1 MB Notification: Performance of matching and sorting (n=1148) (initialization): time 0.04258/1.016, allocations: 18.96 MB / 0.6936 GB, free: 11.78 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002258/1.016, allocations: 80 kB / 0.6937 GB, free: 11.7 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003038/1.017, allocations: 176.1 kB / 0.6939 GB, free: 11.53 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0218/1.038, allocations: 5.777 MB / 0.6995 GB, free: 5.742 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007305/1.046, allocations: 2.047 MB / 0.7015 GB, free: 3.691 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03506/1.081, allocations: 25.64 MB / 0.7266 GB, free: 9.754 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007598/1.089, allocations: 0.5383 MB / 0.7271 GB, free: 9.215 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001928/1.09, allocations: 0.5038 MB / 0.7276 GB, free: 8.711 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.006604/1.097, allocations: 3.094 MB / 0.7306 GB, free: 5.605 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001559/1.099, allocations: 0.4936 MB / 0.7311 GB, free: 5.105 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2968/1.396, allocations: 12.6 MB / 0.7434 GB, free: 185.1 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.474e-05/1.396, allocations: 50.09 kB / 0.7434 GB, free: 185.1 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.058e-05/1.396, allocations: 10.25 kB / 0.7434 GB, free: 185.1 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.544e-05/1.396, allocations: 15.84 kB / 0.7435 GB, free: 185.1 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04358/1.439, allocations: 24.2 MB / 0.7671 GB, free: 173.6 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.236e-05/1.439, allocations: 7.875 kB / 0.7671 GB, free: 173.6 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002904/1.442, allocations: 0.5774 MB / 0.7677 GB, free: 173.1 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01703/1.459, allocations: 4.807 MB / 0.7724 GB, free: 168.3 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007101/1.46, allocations: 55.98 kB / 0.7724 GB, free: 168.2 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02038/1.481, allocations: 20.91 MB / 0.7928 GB, free: 147.1 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.731e-06/1.481, allocations: 19.78 kB / 0.7928 GB, free: 147.1 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02886/1.509, allocations: 16.99 MB / 0.8094 GB, free: 130.3 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001317/1.511, allocations: 0.5269 MB / 0.8099 GB, free: 130 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001078/1.512, allocations: 52 kB / 0.81 GB, free: 129.9 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002761/1.515, allocations: 258.9 kB / 0.8102 GB, free: 129.7 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006206/1.515, allocations: 193.3 kB / 0.8104 GB, free: 129.5 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000238/1.516, allocations: 80 kB / 0.8105 GB, free: 129.4 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.004335/1.52, allocations: 3.424 MB / 0.8138 GB, free: 126 MB / 0.5294 GB Notification: Performance of sort global known variables: time 7.71e-07/1.52, allocations: 0 / 0.8138 GB, free: 126 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.007529/1.527, allocations: 1.683 MB / 0.8155 GB, free: 124.4 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.03002/1.557, allocations: 17.66 MB / 0.8327 GB, free: 106.7 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01335/1.571, allocations: 10.62 MB / 0.8431 GB, free: 96.09 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 9.898e-06/1.571, allocations: 8 kB / 0.8431 GB, free: 96.08 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.004562/1.576, allocations: 4.01 MB / 0.847 GB, free: 92.06 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003723/1.579, allocations: 0.6593 MB / 0.8477 GB, free: 91.42 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1295/1.709, allocations: 85.86 MB / 0.9315 GB, free: 13.8 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2489/1.958, allocations: 4.615 MB / 0.936 GB, free: 199.4 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.00704/1.965, allocations: 2.98 MB / 0.9389 GB, free: 199.3 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004826/1.97, allocations: 2.915 MB / 0.9418 GB, free: 199.3 MB / 0.545 GB Notification: Performance of SimCode: time 1.954e-06/1.97, allocations: 3.125 kB / 0.9418 GB, free: 199.3 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1695/2.139, allocations: 127.5 MB / 1.066 GB, free: 86.1 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 38.26/40.4, allocations: 11.77 kB / 1.066 GB, free: 86.09 MB / 0.545 GB (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