Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.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 3.2.3+maint.om/package.mo", uses=false) 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.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.PlanarFourbar,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarFourbar",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarFourbar",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.001274/0.001273, allocations: 114.5 kB / 17.73 MB, free: 5.336 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.001311/0.001311, allocations: 187 kB / 18.67 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.296/1.296, allocations: 205.1 MB / 224.5 MB, free: 12.23 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.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.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001606/0.001606, allocations: 55.92 kB / 328 MB, free: 3.805 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08582/0.08744, allocations: 46.62 MB / 374.7 MB, free: 5.07 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.1723/0.2598, allocations: 18.57 MB / 393.2 MB, free: 2.148 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01341/0.2733, allocations: 6.153 MB / 399.4 MB, free: 14.01 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005401/0.2787, allocations: 143.2 kB / 399.5 MB, free: 13.98 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01213/0.2909, allocations: 6.275 MB / 405.8 MB, free: 11.05 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008022/0.299, allocations: 2.846 MB / 408.6 MB, free: 9.098 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004938/0.3039, allocations: 2.283 MB / 410.9 MB, free: 7.555 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01197/0.3159, allocations: 8.845 MB / 419.8 MB, free: 2.641 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00996/0.3259, allocations: 8.421 MB / 428.2 MB, free: 10.16 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005765/0.3317, allocations: 3.198 MB / 431.4 MB, free: 6.949 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006275/0.338, allocations: 4.187 MB / 435.6 MB, free: 2.75 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001905/0.3399, allocations: 0.7148 MB / 436.3 MB, free: 2.035 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004167/0.3441, allocations: 1.9 MB / 438.2 MB, free: 136 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004692/0.3488, allocations: 3.8 MB / 442 MB, free: 12.32 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006722/0.3556, allocations: 4.45 MB / 446.4 MB, free: 7.852 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01747/0.3731, allocations: 13.97 MB / 460.4 MB, free: 9.832 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.552e-06/0.3731, allocations: 0 / 460.4 MB, free: 9.832 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.154e-06/0.3731, allocations: 0 / 460.4 MB, free: 9.832 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003615/0.3735, allocations: 0 / 460.4 MB, free: 9.832 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: 2349 * Number of variables: 2349 Notification: Performance of Generate backend data structure: time 0.02867/0.4022, allocations: 9.718 MB / 470.1 MB, free: 12 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.538e-05/0.4022, allocations: 12.03 kB / 470.1 MB, free: 0 / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002565/0.4048, allocations: 1.127 MB / 471.3 MB, free: 14.86 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.3355/0.7403, allocations: 23.29 MB / 494.6 MB, free: 7.539 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01872/0.7591, allocations: 8.637 MB / 0.4914 GB, free: 14.83 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003715/0.7595, allocations: 435.9 kB / 0.4918 GB, free: 14.4 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001871/0.7614, allocations: 0.5856 MB / 0.4924 GB, free: 13.82 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03347/0.7949, allocations: 16.87 MB / 0.5089 GB, free: 12 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002981/0.7952, allocations: 83.41 kB / 0.5089 GB, free: 11.91 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001427/0.7966, allocations: 267.8 kB / 0.5092 GB, free: 11.65 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004787/0.8014, allocations: 2.658 MB / 0.5118 GB, free: 8.988 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02995/0.8314, allocations: 14.42 MB / 0.5259 GB, free: 10.55 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3825/1.214, allocations: 63.93 MB / 0.5883 GB, free: 105.2 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02075/1.235, allocations: 8.631 MB / 0.5967 GB, free: 102.7 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004638/1.239, allocations: 4.923 MB / 0.6015 GB, free: 100.6 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02174/1.261, allocations: 18.15 MB / 0.6193 GB, free: 90.16 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.753e-05/1.261, allocations: 76.39 kB / 0.6193 GB, free: 90.1 MB / 478.1 MB Notification: Performance of pre-optimization done (n=281): time 6.232e-06/1.261, allocations: 0 / 0.6193 GB, free: 90.1 MB / 478.1 MB Notification: Performance of matching and sorting (n=374): time 0.233/1.494, allocations: 73.37 MB / 0.691 GB, free: 17.55 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.416e-05/1.494, allocations: 374.6 kB / 0.6914 GB, free: 17.11 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007121/1.502, allocations: 6.501 MB / 0.6977 GB, free: 10.71 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008245/1.502, allocations: 85.7 kB / 0.6978 GB, free: 10.62 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002059/1.504, allocations: 5.038 MB / 0.7027 GB, free: 5.992 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001297/1.506, allocations: 1.435 MB / 0.7041 GB, free: 4.578 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002271/1.508, allocations: 1.841 MB / 0.7059 GB, free: 2.723 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 3.546e-05/1.508, allocations: 305.1 kB / 0.7062 GB, free: 2.422 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006942/1.515, allocations: 5.662 MB / 0.7117 GB, free: 12.75 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01259/1.528, allocations: 10.61 MB / 0.7221 GB, free: 15.78 MB / 0.4982 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02255/1.55, allocations: 17.36 MB / 0.739 GB, free: 11.99 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000113/1.55, allocations: 50.44 kB / 0.7391 GB, free: 11.94 MB / 0.5138 GB Notification: Performance of matching and sorting (n=1157) (initialization): time 0.2191/1.77, allocations: 22 MB / 0.7606 GB, free: 173.1 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001121/1.77, allocations: 81.88 kB / 0.7606 GB, free: 173.1 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002504/1.77, allocations: 170.5 kB / 0.7608 GB, free: 173.1 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02037/1.79, allocations: 6.862 MB / 0.7675 GB, free: 172.6 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00711/1.797, allocations: 2.076 MB / 0.7695 GB, free: 172.5 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03999/1.837, allocations: 36.4 MB / 0.8051 GB, free: 152.7 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008273/1.846, allocations: 0.7218 MB / 0.8058 GB, free: 152 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001542/1.847, allocations: 0.5078 MB / 0.8063 GB, free: 151.5 MB / 0.5138 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 779 * Number of states: 0 () * Number of discrete variables: 51 (sensorJoint4.arrowColor[3],sensorJoint4.arrowColor[2],sensorJoint4.arrowColor[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],body4.color[3],body4.color[2],body4.color[1],body4.body.sphereColor[3],body4.body.sphereColor[2],body4.body.sphereColor[1],body3.color[3],body3.color[2],body3.color[1],body3.body.sphereColor[3],body3.body.sphereColor[2],body3.body.sphereColor[1],body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.body.sphereColor[1],revolute4cut.cylinderColor[3],revolute4cut.cylinderColor[2],revolute4cut.cylinderColor[1],revolute3.cylinderColor[3],revolute3.cylinderColor[2],revolute3.cylinderColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1015): * Single equations (assignments): 1008 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(5,68,84.0%), (2,18,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,24)} Notification: Performance of prepare postOptimizeDAE: time 0.005174/1.853, allocations: 3.435 MB / 0.8096 GB, free: 148.2 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001367/1.854, allocations: 0.6195 MB / 0.8102 GB, free: 148 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02802/1.882, allocations: 16.11 MB / 0.826 GB, free: 131.8 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.509e-05/1.882, allocations: 44 kB / 0.826 GB, free: 131.8 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.935e-05/1.882, allocations: 19.94 kB / 0.826 GB, free: 131.8 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.419e-05/1.882, allocations: 23.55 kB / 0.8261 GB, free: 131.8 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04369/1.926, allocations: 31.33 MB / 0.8567 GB, free: 100.2 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.062e-05/1.926, allocations: 4 kB / 0.8567 GB, free: 100.2 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002968/1.929, allocations: 0.6047 MB / 0.8573 GB, free: 99.55 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01749/1.946, allocations: 6.441 MB / 0.8635 GB, free: 93.09 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007786/1.947, allocations: 63.94 kB / 0.8636 GB, free: 93.02 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03564/1.983, allocations: 34.63 MB / 0.8974 GB, free: 58.2 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.567e-06/1.983, allocations: 4 kB / 0.8974 GB, free: 58.19 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03371/2.017, allocations: 23.59 MB / 0.9205 GB, free: 34.53 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003616/2.02, allocations: 1.657 MB / 0.9221 GB, free: 32.86 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001539/2.022, allocations: 63.98 kB / 0.9221 GB, free: 32.8 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004366/2.026, allocations: 431.3 kB / 0.9226 GB, free: 32.38 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001002/2.027, allocations: 250.4 kB / 0.9228 GB, free: 32.13 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003502/2.028, allocations: 95.98 kB / 0.9229 GB, free: 32.04 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.004956/2.033, allocations: 4.159 MB / 0.927 GB, free: 27.89 MB / 0.5138 GB Notification: Performance of sort global known variables: time 3.81e-07/2.033, allocations: 0 / 0.927 GB, free: 27.89 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.007487/2.04, allocations: 2.199 MB / 0.9291 GB, free: 25.71 MB / 0.5138 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 2 (revolute1.phi,revolute1.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 (243): * Single equations (assignments): 236 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(5,62,84.0%), (2,15,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,28)} Notification: Performance of Backend phase and start with SimCode phase: time 0.2039/2.244, allocations: 24.35 MB / 0.9529 GB, free: 167.7 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.01905/2.263, allocations: 14.3 MB / 0.9668 GB, free: 162.1 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 8.225e-06/2.263, allocations: 0 / 0.9668 GB, free: 162.1 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.008639/2.272, allocations: 6.577 MB / 0.9733 GB, free: 159.3 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005206/2.277, allocations: 0.9416 MB / 0.9742 GB, free: 158.9 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1292/2.406, allocations: 103.3 MB / 1.075 GB, free: 58.65 MB / 0.5138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005127/2.411, allocations: 5.288 MB / 1.08 GB, free: 53.34 MB / 0.5138 GB Notification: Performance of simCode: alias equations: time 0.005624/2.417, allocations: 3.037 MB / 1.083 GB, free: 50.3 MB / 0.5138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003958/2.421, allocations: 3.413 MB / 1.087 GB, free: 46.89 MB / 0.5138 GB Notification: Performance of SimCode: time 1.002e-06/2.421, allocations: 0 / 1.087 GB, free: 46.89 MB / 0.5138 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.38/2.801, allocations: 167.2 MB / 1.25 GB, free: 70.73 MB / 0.5138 GB Notification: Performance of buildModelFMU: Generate platform static: time 26.48/29.28, allocations: 7.969 kB / 1.25 GB, free: 70.73 MB / 0.5138 GB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarFourbar_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarFourbar.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Loops/PlanarFourbar/PlanarFourbar.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches