Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel.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.Elementary.RollingWheel,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_RollingWheel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_RollingWheel",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.0007306/0.0007307, allocations: 91.86 kB / 16.31 MB, free: 5.551 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.0008104/0.0008104, allocations: 181.8 kB / 17.21 MB, free: 5.469 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.459/1.459, allocations: 223.2 MB / 241.2 MB, free: 368 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002814/0.0002815, allocations: 4 kB / 300.9 MB, free: 6.352 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1162/0.1165, allocations: 50.42 MB / 351.3 MB, free: 3.926 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel): time 0.01255/0.1291, allocations: 12.56 MB / 363.9 MB, free: 7.32 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.009213/0.1384, allocations: 4.072 MB / 368 MB, free: 3.238 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002206/0.1406, allocations: 51.88 kB / 368 MB, free: 3.188 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001476/0.1421, allocations: 0.591 MB / 368.6 MB, free: 2.594 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005638/0.1478, allocations: 2.184 MB / 370.8 MB, free: 412 kB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.2581/0.4058, allocations: 426.4 kB / 371.2 MB, free: 9.336 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.04528/0.4511, allocations: 31.25 MB / 402.5 MB, free: 15.12 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003193/0.4544, allocations: 1.543 MB / 404 MB, free: 13.98 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00167/0.4561, allocations: 0.7418 MB / 404.8 MB, free: 13.46 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001774/0.4579, allocations: 1.23 MB / 406 MB, free: 12.56 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002632/0.4581, allocations: 84 kB / 406.1 MB, free: 12.48 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001578/0.4597, allocations: 0.7871 MB / 406.9 MB, free: 11.86 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001004/0.4607, allocations: 1.036 MB / 407.9 MB, free: 11.05 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005536/0.4613, allocations: 0.5092 MB / 408.4 MB, free: 10.77 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003217/0.4645, allocations: 3.35 MB / 411.7 MB, free: 7.879 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.063e-06/0.4645, allocations: 0 / 411.7 MB, free: 7.879 MB / 318.1 MB Notification: Performance of FrontEnd: time 4.819e-06/0.4646, allocations: 0 / 411.7 MB, free: 7.879 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.081e-05/0.4646, allocations: 1.75 kB / 411.7 MB, free: 7.879 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 947 * Number of variables: 947 Notification: Performance of Generate backend data structure: time 0.006056/0.4707, allocations: 2.777 MB / 414.5 MB, free: 5.238 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.741e-05/0.4708, allocations: 8.031 kB / 414.5 MB, free: 5.23 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005712/0.4713, allocations: 466.5 kB / 415 MB, free: 4.938 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005276/0.4766, allocations: 1.709 MB / 416.7 MB, free: 3.281 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003597/0.4802, allocations: 1.788 MB / 418.5 MB, free: 1.852 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.818e-05/0.4803, allocations: 133.5 kB / 418.6 MB, free: 1.777 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003004/0.4806, allocations: 168.5 kB / 418.8 MB, free: 1.672 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009558/0.4902, allocations: 6.593 MB / 425.4 MB, free: 10.67 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.6e-05/0.4903, allocations: 31.75 kB / 425.4 MB, free: 10.64 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002411/0.4906, allocations: 89.53 kB / 425.5 MB, free: 10.55 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001944/0.4925, allocations: 1.327 MB / 426.8 MB, free: 9.23 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01063/0.5032, allocations: 5.824 MB / 432.6 MB, free: 3.406 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03389/0.5371, allocations: 28.08 MB / 460.7 MB, free: 6.516 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0061/0.5433, allocations: 2.734 MB / 463.5 MB, free: 3.633 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001765/0.5451, allocations: 1.27 MB / 464.7 MB, free: 2.352 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000723/0.5458, allocations: 0.6395 MB / 465.4 MB, free: 1.602 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.803e-05/0.5459, allocations: 43.94 kB / 465.4 MB, free: 1.551 MB / 366.1 MB Notification: Performance of pre-optimization done (n=120): time 3.246e-06/0.5459, allocations: 0 / 465.4 MB, free: 1.551 MB / 366.1 MB Notification: Performance of matching and sorting (n=154): time 0.06645/0.6123, allocations: 20.59 MB / 486 MB, free: 12.85 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.34e-05/0.6125, allocations: 141.5 kB / 486.1 MB, free: 12.68 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005109/0.6176, allocations: 2.835 MB / 489 MB, free: 9.836 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003879/0.618, allocations: 45.7 kB / 489 MB, free: 9.785 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001552/0.6196, allocations: 2.106 MB / 491.1 MB, free: 7.652 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007508/0.6203, allocations: 0.6055 MB / 491.7 MB, free: 7.039 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002504/0.6206, allocations: 96 kB / 491.8 MB, free: 6.945 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002926/0.6209, allocations: 0.5126 MB / 492.3 MB, free: 6.426 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003114/0.624, allocations: 2.196 MB / 494.5 MB, free: 4.223 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005059/0.6291, allocations: 5.153 MB / 499.7 MB, free: 13.59 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004327/0.6334, allocations: 3.295 MB / 0.4912 GB, free: 10.29 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.766e-05/0.6335, allocations: 28 kB / 0.4912 GB, free: 10.27 MB / 414.1 MB Notification: Performance of matching and sorting (n=641) (initialization): time 0.02182/0.6553, allocations: 10.26 MB / 0.5012 GB, free: 15.98 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.821e-05/0.6554, allocations: 50.5 kB / 0.5013 GB, free: 15.93 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001124/0.6555, allocations: 115.9 kB / 0.5014 GB, free: 15.82 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01079/0.6663, allocations: 3.51 MB / 0.5048 GB, free: 12.28 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003715/0.6701, allocations: 1.107 MB / 0.5059 GB, free: 11.17 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01881/0.6889, allocations: 12.04 MB / 0.5177 GB, free: 14.99 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005092/0.6941, allocations: 331.5 kB / 0.518 GB, free: 14.66 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001151/0.6952, allocations: 309.5 kB / 0.5183 GB, free: 14.36 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 477 * Number of states: 0 () * Number of discrete variables: 15 (world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],wheel1.body.sphereColor[3],wheel1.body.sphereColor[2],wheel1.body.sphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (581): * Single equations (assignments): 571 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 6 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 6 {(2,100.0%),(2,100.0%),(2,100.0%),(3,88.9%),(3,88.9%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(6,80.6%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003295/0.6985, allocations: 1.469 MB / 0.5197 GB, free: 12.88 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000659/0.6992, allocations: 252.7 kB / 0.5199 GB, free: 12.63 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01484/0.7141, allocations: 6.022 MB / 0.5258 GB, free: 6.574 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.725e-05/0.7142, allocations: 23.98 kB / 0.5258 GB, free: 6.551 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.908e-05/0.7142, allocations: 12 kB / 0.5259 GB, free: 6.539 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.67e-05/0.7142, allocations: 7.922 kB / 0.5259 GB, free: 6.531 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2777/0.992, allocations: 13.19 MB / 0.5387 GB, free: 147 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.858e-05/0.992, allocations: 1.562 kB / 0.5388 GB, free: 147 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0012/0.9932, allocations: 230 kB / 0.539 GB, free: 147 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.012/1.005, allocations: 4.139 MB / 0.543 GB, free: 146.8 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003869/1.006, allocations: 44.77 kB / 0.5431 GB, free: 146.8 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01679/1.022, allocations: 12.09 MB / 0.5549 GB, free: 141.8 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/1.022, allocations: 0 / 0.5549 GB, free: 141.8 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01745/1.04, allocations: 9.926 MB / 0.5646 GB, free: 137 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008005/1.041, allocations: 308.2 kB / 0.5648 GB, free: 136.9 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003617/1.041, allocations: 37.28 kB / 0.5649 GB, free: 136.9 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001404/1.043, allocations: 188.4 kB / 0.5651 GB, free: 136.8 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003897/1.043, allocations: 111.3 kB / 0.5652 GB, free: 136.7 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001577/1.043, allocations: 49.33 kB / 0.5652 GB, free: 136.7 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002415/1.046, allocations: 1.752 MB / 0.5669 GB, free: 135.7 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.2e-07/1.046, allocations: 0 / 0.5669 GB, free: 135.7 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003916/1.049, allocations: 0.8294 MB / 0.5677 GB, free: 134.9 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 8 (wheel1.x,wheel1.y,wheel1.angles[1],wheel1.angles[2],wheel1.angles[3],wheel1.der_angles[1],wheel1.der_angles[2],wheel1.der_angles[3]) * 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 (104): * Single equations (assignments): 94 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 6 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 6 {(2,100.0%),(2,100.0%),(3,88.9%),(2,100.0%),(3,88.9%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(6,80.6%) 19} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01728/1.067, allocations: 10.57 MB / 0.5781 GB, free: 124.4 MB / 446.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Mechanics/MultiBody/Parts/RollingWheel.mo:33:3-37:72:writable] Warning: Variable $DER.wheel1.der_angles[2] has attribute stateSelect=StateSelect.always, but can't be selected as a state. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Mechanics/MultiBody/Parts/RollingWheel.mo:33:3-37:72:writable] Warning: Variable $DER.wheel1.der_angles[1] has attribute stateSelect=StateSelect.always, but can't be selected as a state. Notification: Performance of simCode: created initialization part: time 0.009239/1.076, allocations: 6.187 MB / 0.5841 GB, free: 118.1 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.282e-06/1.076, allocations: 0 / 0.5841 GB, free: 118.1 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004228/1.08, allocations: 2.862 MB / 0.5869 GB, free: 115.1 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001906/1.082, allocations: 293.9 kB / 0.5872 GB, free: 114.8 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04641/1.129, allocations: 28.92 MB / 0.6154 GB, free: 83.24 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001771/1.13, allocations: 2.325 MB / 0.6177 GB, free: 80.89 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002992/1.133, allocations: 1.519 MB / 0.6192 GB, free: 79.36 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001295/1.135, allocations: 1.124 MB / 0.6203 GB, free: 78.24 MB / 446.1 MB Notification: Performance of SimCode: time 1.513e-06/1.135, allocations: 7.875 kB / 0.6203 GB, free: 78.23 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09333/1.228, allocations: 67.68 MB / 0.6864 GB, free: 10.93 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001484/1.228, allocations: 221 kB / 0.6866 GB, free: 10.7 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.489/4.717, allocations: 3.094 kB / 0.6866 GB, free: 10.7 MB / 446.1 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_RollingWheel_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_RollingWheel.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel_res.mat does not exist to compare? outputFormat=mat