Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001065/0.001065, allocations: 113.5 kB / 17.06 MB, free: 6 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00112/0.00112, allocations: 198.9 kB / 18 MB, free: 5.078 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.292/1.292, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001215/0.001215, allocations: 43.92 kB / 350.8 MB, free: 3.75 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2526/0.2538, allocations: 49.44 MB / 400.2 MB, free: 8.418 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.01554/0.2694, allocations: 15.02 MB / 415.3 MB, free: 9.727 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01003/0.2795, allocations: 4.815 MB / 420.1 MB, free: 4.898 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00229/0.2818, allocations: 95.69 kB / 420.2 MB, free: 4.805 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006249/0.2881, allocations: 3.165 MB / 423.3 MB, free: 1.629 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006601/0.2947, allocations: 2.556 MB / 425.9 MB, free: 15.07 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00234/0.2971, allocations: 0.9944 MB / 426.9 MB, free: 14.07 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.009366/0.3065, allocations: 6.971 MB / 433.8 MB, free: 7.082 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006175/0.3127, allocations: 4.334 MB / 438.2 MB, free: 2.68 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00393/0.3166, allocations: 2.215 MB / 440.4 MB, free: 468 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004969/0.3216, allocations: 3.248 MB / 443.6 MB, free: 13.2 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001589/0.3232, allocations: 487.9 kB / 444.1 MB, free: 12.72 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00372/0.327, allocations: 1.502 MB / 445.6 MB, free: 11.22 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004049/0.331, allocations: 2.887 MB / 448.5 MB, free: 8.324 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005968/0.337, allocations: 3.305 MB / 451.8 MB, free: 5 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01449/0.3515, allocations: 10.58 MB / 462.4 MB, free: 10.38 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.322e-06/0.3516, allocations: 0 / 462.4 MB, free: 10.38 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.3516, allocations: 0 / 462.4 MB, free: 10.38 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003946/0.352, allocations: 4 kB / 462.4 MB, free: 10.38 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.02283/0.3748, allocations: 7.47 MB / 469.9 MB, free: 2.82 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.111e-05/0.3749, allocations: 8.031 kB / 469.9 MB, free: 2.812 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00317/0.3781, allocations: 1.137 MB / 471 MB, free: 1.66 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04548/0.4236, allocations: 7.512 MB / 478.5 MB, free: 10.13 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01276/0.4364, allocations: 4.864 MB / 483.4 MB, free: 5.203 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003364/0.4367, allocations: 320.2 kB / 483.7 MB, free: 4.887 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001879/0.4386, allocations: 431.7 kB / 484.1 MB, free: 4.465 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02771/0.4664, allocations: 15.61 MB / 499.7 MB, free: 3.922 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001486/0.4665, allocations: 59.52 kB / 499.8 MB, free: 3.863 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005923/0.4671, allocations: 207.8 kB / 0.4883 GB, free: 3.66 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004848/0.472, allocations: 3.208 MB / 0.4914 GB, free: 460 kB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02763/0.4996, allocations: 13.91 MB / 0.505 GB, free: 2.512 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2654/0.7651, allocations: 57.09 MB / 0.5608 GB, free: 90.68 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01174/0.7769, allocations: 6.481 MB / 0.5671 GB, free: 88.79 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003536/0.7805, allocations: 3.572 MB / 0.5706 GB, free: 87.37 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01916/0.7996, allocations: 14.31 MB / 0.5845 GB, free: 79.5 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.461e-05/0.7997, allocations: 61.97 kB / 0.5846 GB, free: 79.44 MB / 462.1 MB Notification: Performance of pre-optimization done (n=286): time 5.741e-06/0.7997, allocations: 0 / 0.5846 GB, free: 79.44 MB / 462.1 MB Notification: Performance of matching and sorting (n=336): time 0.1316/0.9313, allocations: 41.61 MB / 0.6252 GB, free: 38.87 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.564e-05/0.9314, allocations: 218 kB / 0.6254 GB, free: 38.61 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005562/0.937, allocations: 5.491 MB / 0.6308 GB, free: 33.14 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006714/0.9377, allocations: 69.7 kB / 0.6309 GB, free: 33.06 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00163/0.9393, allocations: 4.417 MB / 0.6352 GB, free: 28.65 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009628/0.9403, allocations: 1.243 MB / 0.6364 GB, free: 27.41 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001968/0.9422, allocations: 1.775 MB / 0.6381 GB, free: 25.62 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 3.74e-05/0.9423, allocations: 309 kB / 0.6384 GB, free: 25.32 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004756/0.947, allocations: 4.62 MB / 0.6429 GB, free: 20.69 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006379/0.9534, allocations: 9.594 MB / 0.6523 GB, free: 8.723 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01513/0.9686, allocations: 15.26 MB / 0.6672 GB, free: 7.035 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001063/0.9687, allocations: 48 kB / 0.6673 GB, free: 6.988 MB / 478.1 MB Notification: Performance of matching and sorting (n=1148) (initialization): time 0.04386/1.013, allocations: 18.97 MB / 0.6858 GB, free: 3.977 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001027/1.013, allocations: 84.03 kB / 0.6859 GB, free: 3.895 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000171/1.013, allocations: 172 kB / 0.686 GB, free: 3.727 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02357/1.036, allocations: 5.771 MB / 0.6917 GB, free: 13.95 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007077/1.044, allocations: 2.047 MB / 0.6937 GB, free: 11.89 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03345/1.077, allocations: 25.65 MB / 0.7187 GB, free: 1.969 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00704/1.084, allocations: 0.5421 MB / 0.7192 GB, free: 1.426 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001387/1.086, allocations: 0.5039 MB / 0.7197 GB, free: 0.9219 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.005934/1.092, allocations: 3.095 MB / 0.7228 GB, free: 13.82 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0012/1.093, allocations: 0.4974 MB / 0.7232 GB, free: 13.31 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03178/1.125, allocations: 12.6 MB / 0.7355 GB, free: 0.6406 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.199e-05/1.125, allocations: 52 kB / 0.7356 GB, free: 0.5898 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.979e-05/1.125, allocations: 8 kB / 0.7356 GB, free: 0.582 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.385e-05/1.125, allocations: 15.94 kB / 0.7356 GB, free: 0.5664 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2806/1.405, allocations: 24.18 MB / 0.7592 GB, free: 182.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.386e-05/1.405, allocations: 3.875 kB / 0.7592 GB, free: 182.3 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002969/1.408, allocations: 0.5784 MB / 0.7598 GB, free: 182.2 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01947/1.428, allocations: 4.814 MB / 0.7645 GB, free: 180.5 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006326/1.429, allocations: 55.7 kB / 0.7646 GB, free: 180.4 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02189/1.45, allocations: 20.9 MB / 0.785 GB, free: 160 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.301e-06/1.45, allocations: 10.69 kB / 0.785 GB, free: 160 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03142/1.482, allocations: 16.99 MB / 0.8016 GB, free: 143.2 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001381/1.483, allocations: 0.5328 MB / 0.8021 GB, free: 142.9 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008061/1.484, allocations: 55.94 kB / 0.8021 GB, free: 142.8 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002752/1.487, allocations: 255.4 kB / 0.8024 GB, free: 142.6 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006496/1.488, allocations: 193.5 kB / 0.8026 GB, free: 142.4 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002477/1.488, allocations: 80 kB / 0.8026 GB, free: 142.3 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.003586/1.491, allocations: 3.424 MB / 0.806 GB, free: 138.9 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2.1e-07/1.491, allocations: 7.938 kB / 0.806 GB, free: 138.9 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.006095/1.497, allocations: 1.703 MB / 0.8077 GB, free: 137.2 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.03082/1.528, allocations: 17.66 MB / 0.8249 GB, free: 119.6 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01275/1.541, allocations: 10.63 MB / 0.8353 GB, free: 109 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 7.995e-06/1.541, allocations: 4 kB / 0.8353 GB, free: 109 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.004535/1.546, allocations: 4.009 MB / 0.8392 GB, free: 105 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003405/1.549, allocations: 0.646 MB / 0.8398 GB, free: 104.3 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1183/1.667, allocations: 85.89 MB / 0.9237 GB, free: 10.71 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2132/1.881, allocations: 4.618 MB / 0.9282 GB, free: 185 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.008043/1.889, allocations: 2.979 MB / 0.9311 GB, free: 184.9 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003855/1.893, allocations: 2.921 MB / 0.934 GB, free: 184.9 MB / 0.5294 GB Notification: Performance of SimCode: time 9.12e-07/1.893, allocations: 0 / 0.934 GB, free: 184.9 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1518/2.044, allocations: 127.6 MB / 1.059 GB, free: 73.18 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 39.25/41.29, allocations: 11.34 kB / 1.059 GB, free: 73.17 MB / 0.5294 GB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar2_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar2.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches