Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.TestDryFrictionWheel.conf.json 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) 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/PlanarMechanics 1.5.1/package.mo", uses=false) Using package PlanarMechanics with version 1.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/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) 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) Running command: "" <> buildModelFMU(PlanarMechanics.VehicleComponents.Examples.TestDryFrictionWheel,fileNamePrefix="PlanarMechanics_PlanarMechanics_VehicleComponents_Examples_TestDryFrictionWheel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.VehicleComponents.Examples.TestDryFrictionWheel,fileNamePrefix="PlanarMechanics_PlanarMechanics_VehicleComponents_Examples_TestDryFrictionWheel",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001177/0.001177, allocations: 180.9 kB / 7.651 MB, free: 1.422 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.501/1.501, allocations: 221.5 MB / 229.6 MB, free: 7.59 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001001/0.001001, allocations: 92.86 kB / 280.5 MB, free: 5.34 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.04021/0.04021, allocations: 8.835 MB / 340.1 MB, free: 6.418 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.495e-05/1.498e-05, allocations: 1.438 kB / 398.8 MB, free: 47.54 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0958/0.09583, allocations: 52.39 MB / 451.2 MB, free: 4.465 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3817/0.4776, allocations: 89.57 MB / 0.5281 GB, free: 29.04 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002862/0.478, allocations: 83.72 kB / 0.5281 GB, free: 29.04 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1543/0.6323, allocations: 62.04 MB / 0.5887 GB, free: 11.56 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.314e-06/0.6323, allocations: 0 / 0.5887 GB, free: 11.56 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001701/0.6325, allocations: 50.12 kB / 0.5888 GB, free: 11.56 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1163 * Number of variables: 1163 Notification: Performance of Generate backend data structure: time 0.01832/0.6508, allocations: 3.549 MB / 0.5922 GB, free: 9.168 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.357e-05/0.6509, allocations: 12.02 kB / 0.5923 GB, free: 9.156 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009869/0.6608, allocations: 1.926 MB / 0.5941 GB, free: 7.227 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005285/0.6661, allocations: 1.763 MB / 0.5959 GB, free: 5.887 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002116/0.6664, allocations: 95.44 kB / 0.5959 GB, free: 5.797 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002237/0.6686, allocations: 171.9 kB / 0.5961 GB, free: 5.629 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.009938/0.6786, allocations: 5.567 MB / 0.6015 GB, free: 2.109 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02056/0.6992, allocations: 7.333 MB / 0.6087 GB, free: 11.28 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002276/0.6994, allocations: 27.8 kB / 0.6087 GB, free: 11.25 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002168/0.7016, allocations: 12 kB / 0.6087 GB, free: 11.24 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002038/0.7037, allocations: 0.9037 MB / 0.6096 GB, free: 10.34 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04375/0.7474, allocations: 25.09 MB / 0.6341 GB, free: 0.6797 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004695/0.7522, allocations: 3.33 MB / 0.6374 GB, free: 13.08 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001428/0.7537, allocations: 0.9437 MB / 0.6383 GB, free: 12.13 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006402/0.7601, allocations: 3.828 MB / 0.642 GB, free: 7.977 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.037e-05/0.7601, allocations: 43.88 kB / 0.6421 GB, free: 7.926 MB / 410.7 MB Notification: Performance of pre-optimization done (n=142): time 3.737e-06/0.7602, allocations: 0 / 0.6421 GB, free: 7.926 MB / 410.7 MB Notification: Performance of matching and sorting (n=156): time 0.01044/0.7706, allocations: 5.4 MB / 0.6474 GB, free: 2.43 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.791e-05/0.7707, allocations: 68.7 kB / 0.6474 GB, free: 2.352 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002907/0.7736, allocations: 1.871 MB / 0.6493 GB, free: 448 kB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 7.917e-05/0.7737, allocations: 29.7 kB / 0.6493 GB, free: 412 kB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001437/0.7751, allocations: 2.142 MB / 0.6514 GB, free: 14.23 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005152/0.7757, allocations: 0.5704 MB / 0.6519 GB, free: 13.65 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001405/0.7758, allocations: 0 / 0.6519 GB, free: 13.65 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0003338/0.7762, allocations: 0.5155 MB / 0.6524 GB, free: 13.12 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00187/0.778, allocations: 1.23 MB / 0.6536 GB, free: 11.88 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003382/0.7814, allocations: 3.478 MB / 0.657 GB, free: 7.27 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00297/0.7844, allocations: 2.122 MB / 0.6591 GB, free: 5.145 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.084e-05/0.7844, allocations: 20 kB / 0.6591 GB, free: 5.125 MB / 426.7 MB Notification: Performance of matching and sorting (n=541) (initialization): time 0.007203/0.7917, allocations: 4.474 MB / 0.6635 GB, free: 0.6445 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.395e-05/0.7917, allocations: 40 kB / 0.6635 GB, free: 0.6055 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.481e-05/0.7918, allocations: 80 kB / 0.6636 GB, free: 0.5273 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006753/0.7925, allocations: 294.3 kB / 0.6639 GB, free: 244 kB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002895/0.7954, allocations: 0.9163 MB / 0.6648 GB, free: 15.32 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00303/0.7985, allocations: 2.554 MB / 0.6673 GB, free: 12.64 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002529/0.801, allocations: 108 kB / 0.6674 GB, free: 12.53 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003694/0.8014, allocations: 244 kB / 0.6676 GB, free: 12.29 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 364 * Number of states: 0 () * Number of discrete variables: 9 (body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (502): * Single equations (assignments): 496 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 11} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005083/0.8019, allocations: 302.8 kB / 0.6679 GB, free: 11.99 MB / 442.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.00277/0.8047, allocations: 1.691 MB / 0.6696 GB, free: 10.29 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002513/0.8049, allocations: 189.6 kB / 0.6697 GB, free: 10.1 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003128/0.8081, allocations: 1.878 MB / 0.6716 GB, free: 8.195 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001075/0.8082, allocations: 31.97 kB / 0.6716 GB, free: 8.164 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.073e-06/0.8082, allocations: 4 kB / 0.6716 GB, free: 8.16 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.398e-05/0.8082, allocations: 3.984 kB / 0.6716 GB, free: 8.156 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008731/0.817, allocations: 4.772 MB / 0.6763 GB, free: 3.273 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.103e-06/0.817, allocations: 0 / 0.6763 GB, free: 3.273 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001007/0.818, allocations: 215.7 kB / 0.6765 GB, free: 3.062 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004885/0.8185, allocations: 161.5 kB / 0.6766 GB, free: 2.898 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.906e-05/0.8186, allocations: 12 kB / 0.6766 GB, free: 2.887 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002401/0.821, allocations: 2.135 MB / 0.6787 GB, free: 0.6367 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.027e-05/0.8211, allocations: 8 kB / 0.6787 GB, free: 0.6289 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007009/0.8281, allocations: 3.016 MB / 0.6817 GB, free: 13.51 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001597/0.8297, allocations: 274.5 kB / 0.6819 GB, free: 13.22 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004453/0.8302, allocations: 0 / 0.6819 GB, free: 13.22 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001312/0.8316, allocations: 31.95 kB / 0.682 GB, free: 13.19 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002872/0.8319, allocations: 85.19 kB / 0.682 GB, free: 13.11 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001689/0.832, allocations: 40 kB / 0.6821 GB, free: 13.07 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.00378/0.8358, allocations: 1.257 MB / 0.6833 GB, free: 11.79 MB / 458.7 MB Notification: Performance of sort global known variables: time 8.71e-07/0.8359, allocations: 4 kB / 0.6833 GB, free: 11.78 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.006632/0.8425, allocations: 0.6053 MB / 0.6839 GB, free: 11.18 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 6 (prismatic.s,prismatic.v,revolute.phi,revolute.w,engineTorque.phi,inertia.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (122): * Single equations (assignments): 116 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.008882/0.8514, allocations: 4.042 MB / 0.6879 GB, free: 7.062 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.00913/0.8606, allocations: 3.067 MB / 0.6909 GB, free: 3.984 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 6.903e-06/0.8607, allocations: 4.125 kB / 0.6909 GB, free: 3.98 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002658/0.8633, allocations: 1.039 MB / 0.6919 GB, free: 2.906 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00246/0.8658, allocations: 215 kB / 0.6921 GB, free: 2.695 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2964/1.162, allocations: 6.245 MB / 0.6982 GB, free: 127.9 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002997/1.165, allocations: 2.64 MB / 0.7008 GB, free: 127.1 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.003784/1.169, allocations: 1.163 MB / 0.7019 GB, free: 127.1 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002239/1.171, allocations: 1.323 MB / 0.7032 GB, free: 127.1 MB / 458.7 MB Notification: Performance of SimCode: time 7.82e-07/1.171, allocations: 3.281 kB / 0.7032 GB, free: 127.1 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08069/1.252, allocations: 46.77 MB / 0.7489 GB, free: 111.6 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001838/1.252, allocations: 154.9 kB / 0.749 GB, free: 111.4 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.053/4.305, allocations: 0 / 0.749 GB, free: 111.4 MB / 458.7 MB (rm -f PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.TestDryFrictionWheel.pipe ; mkfifo PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.TestDryFrictionWheel.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.TestDryFrictionWheel.pipe >> ../files/PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.TestDryFrictionWheel.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PlanarMechanics_PlanarMechanics_VehicleComponents_Examples_TestDryFrictionWheel_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 PlanarMechanics_PlanarMechanics_VehicleComponents_Examples_TestDryFrictionWheel.fmu > PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.TestDryFrictionWheel.pipe 2>&1)