Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Rotational.TestFriction.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 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) 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(ModelicaTest.Rotational.TestFriction,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_TestFriction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.TestFriction,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_TestFriction",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.001037/0.001038, allocations: 94.34 kB / 17 MB, free: 6.121 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.001195/0.001195, allocations: 182.9 kB / 17.89 MB, free: 5.699 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.482/1.482, allocations: 223.2 MB / 241.9 MB, free: 216 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2148/0.2148, allocations: 44.23 MB / 337.2 MB, free: 2.773 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003188/0.0003188, allocations: 8 kB / 409.7 MB, free: 27.58 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1402/0.1405, allocations: 61.91 MB / 471.6 MB, free: 13.63 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestFriction): time 0.004036/0.1446, allocations: 3.359 MB / 475 MB, free: 10.25 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002342/0.147, allocations: 1.196 MB / 476.2 MB, free: 9.055 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002693/0.1473, allocations: 15.94 kB / 476.2 MB, free: 9.039 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002691/0.1475, allocations: 83.33 kB / 476.3 MB, free: 8.957 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000371/0.1479, allocations: 178.7 kB / 476.5 MB, free: 8.781 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006303/0.1486, allocations: 255.6 kB / 476.7 MB, free: 8.531 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008534/0.1494, allocations: 0.9053 MB / 477.6 MB, free: 7.617 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002653/0.1497, allocations: 144.9 kB / 477.8 MB, free: 7.469 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004741/0.1502, allocations: 386.6 kB / 478.1 MB, free: 7.09 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005046/0.1507, allocations: 438.4 kB / 478.6 MB, free: 6.66 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.278e-05/0.1508, allocations: 40 kB / 478.6 MB, free: 6.621 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002072/0.151, allocations: 87.94 kB / 478.7 MB, free: 6.535 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001709/0.1512, allocations: 155.4 kB / 478.8 MB, free: 6.383 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001475/0.1513, allocations: 145.3 kB / 479 MB, free: 6.234 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006323/0.152, allocations: 0.6431 MB / 479.6 MB, free: 5.59 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.66e-06/0.152, allocations: 0 / 479.6 MB, free: 5.59 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.354e-06/0.152, allocations: 0 / 479.6 MB, free: 5.59 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.08e-05/0.152, allocations: 0 / 479.6 MB, free: 5.59 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 151 * Number of variables: 151 Notification: Performance of Generate backend data structure: time 0.001923/0.1539, allocations: 1.009 MB / 480.6 MB, free: 4.531 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.438e-05/0.154, allocations: 8.031 kB / 480.6 MB, free: 4.523 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001312/0.1541, allocations: 110.5 kB / 480.8 MB, free: 4.406 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000132/0.1543, allocations: 79.06 kB / 480.8 MB, free: 4.328 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005474/0.1548, allocations: 412.7 kB / 481.2 MB, free: 3.883 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.652e-05/0.1549, allocations: 45.31 kB / 481.3 MB, free: 3.84 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001148/0.155, allocations: 67.86 kB / 481.3 MB, free: 3.773 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001482/0.1565, allocations: 0.8374 MB / 482.2 MB, free: 2.898 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.184e-05/0.1565, allocations: 11.91 kB / 482.2 MB, free: 2.887 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.646e-05/0.1566, allocations: 20 kB / 482.2 MB, free: 2.867 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.769e-05/0.1566, allocations: 16 kB / 482.2 MB, free: 2.852 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001599/0.1582, allocations: 0.786 MB / 483 MB, free: 2.066 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004418/0.1627, allocations: 2.644 MB / 485.7 MB, free: 15.3 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001367/0.1641, allocations: 0.6431 MB / 486.3 MB, free: 14.62 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007117/0.1648, allocations: 388 kB / 486.7 MB, free: 14.23 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.376e-05/0.1649, allocations: 8.375 kB / 486.7 MB, free: 14.23 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.51e-05/0.1649, allocations: 51.62 kB / 486.7 MB, free: 14.17 MB / 366.1 MB Notification: Performance of pre-optimization done (n=72): time 2.405e-06/0.1649, allocations: 0 / 486.7 MB, free: 14.17 MB / 366.1 MB Notification: Performance of matching and sorting (n=76): time 0.008235/0.1732, allocations: 3.746 MB / 490.5 MB, free: 10.16 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000106/0.1733, allocations: 140.4 kB / 490.6 MB, free: 9.996 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006462/0.1739, allocations: 417.8 kB / 491 MB, free: 9.574 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.794e-05/0.174, allocations: 53.69 kB / 491.1 MB, free: 9.516 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002893/0.1743, allocations: 276.4 kB / 491.4 MB, free: 9.238 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003053/0.1747, allocations: 264.4 kB / 491.6 MB, free: 8.977 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.341e-05/0.1747, allocations: 20 kB / 491.6 MB, free: 8.957 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002146/0.175, allocations: 374.8 kB / 492 MB, free: 8.582 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008674/0.1758, allocations: 397.8 kB / 492.4 MB, free: 8.195 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009291/0.1768, allocations: 0.5552 MB / 492.9 MB, free: 7.586 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007473/0.1775, allocations: 357.9 kB / 493.3 MB, free: 7.238 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.432e-06/0.1776, allocations: 0 / 493.3 MB, free: 7.238 MB / 366.1 MB Notification: Performance of matching and sorting (n=116) (initialization): time 0.002734/0.1803, allocations: 1.283 MB / 494.6 MB, free: 5.938 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.122e-05/0.1803, allocations: 10.03 kB / 494.6 MB, free: 5.93 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.907e-05/0.1804, allocations: 4 kB / 494.6 MB, free: 5.926 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001453/0.1818, allocations: 0.7568 MB / 495.3 MB, free: 5.156 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005743/0.1824, allocations: 159.7 kB / 495.5 MB, free: 5 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002574/0.185, allocations: 2.69 MB / 498.2 MB, free: 2.207 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001012/0.186, allocations: 199.8 kB / 498.4 MB, free: 2.012 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.927e-05/0.1861, allocations: 39.94 kB / 498.4 MB, free: 1.973 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 30 ($PRE.oneWayClutch.startForward,oneWayClutch.startForward,oneWayClutch.locked,$PRE.oneWayClutch.stuck,oneWayClutch.stuck,oneWayClutch.free,clutch.free,$PRE.clutch.startForward,clutch.startForward,$PRE.clutch.startBackward,clutch.startBackward,clutch.locked,$PRE.clutch.mode,clutch.mode,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode,bearingFriction.free,$PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (91): * Single equations (assignments): 87 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 6,1 7,1 6,1 6} Notification: Performance of prepare postOptimizeDAE: time 0.0004427/0.1866, allocations: 209.3 kB / 498.6 MB, free: 1.758 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002417/0.1868, allocations: 59.34 kB / 498.7 MB, free: 1.699 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002251/0.1871, allocations: 87.84 kB / 498.8 MB, free: 1.617 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.08e-05/0.1871, allocations: 8 kB / 498.8 MB, free: 1.609 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.388e-05/0.1871, allocations: 0 / 498.8 MB, free: 1.609 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.639e-05/0.1871, allocations: 11.98 kB / 498.8 MB, free: 1.598 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0043/0.1914, allocations: 2.198 MB / 0.4892 GB, free: 15.33 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.76e-06/0.1914, allocations: 0 / 0.4892 GB, free: 15.33 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005535/0.192, allocations: 119.8 kB / 0.4894 GB, free: 15.21 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001279/0.1933, allocations: 0.7258 MB / 0.4901 GB, free: 14.47 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.132e-05/0.1934, allocations: 31.95 kB / 0.4901 GB, free: 14.44 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002562/0.196, allocations: 2.643 MB / 0.4927 GB, free: 11.7 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.256e-06/0.196, allocations: 0 / 0.4927 GB, free: 11.7 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003299/0.1993, allocations: 1.807 MB / 0.4944 GB, free: 9.859 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004644/0.1998, allocations: 220.2 kB / 0.4947 GB, free: 9.625 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001671/0.1999, allocations: 31.98 kB / 0.4947 GB, free: 9.594 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008853/0.2008, allocations: 171.8 kB / 0.4949 GB, free: 9.426 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003813/0.2012, allocations: 171.6 kB / 0.495 GB, free: 9.258 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.357e-05/0.2013, allocations: 47.88 kB / 0.4951 GB, free: 9.211 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003876/0.2017, allocations: 287.1 kB / 0.4953 GB, free: 8.926 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2017, allocations: 0 / 0.4953 GB, free: 8.926 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009259/0.2026, allocations: 200 kB / 0.4955 GB, free: 8.73 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 12 (inertia4.phi,inertia4.w,oneWayClutch.phi_rel,oneWayClutch.w_rel,inertia2.phi,inertia2.w,clutch.phi_rel,clutch.w_rel,inertia1.w,brake.phi,inertia.w,bearingFriction.phi) * Number of discrete variables: 18 (oneWayClutch.startForward,oneWayClutch.locked,oneWayClutch.stuck,oneWayClutch.free,clutch.free,clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode) * Number of discrete states: 11 (bearingFriction.mode,bearingFriction.startForward,bearingFriction.startBackward,brake.mode,brake.startForward,brake.startBackward,clutch.mode,clutch.startForward,clutch.startBackward,oneWayClutch.stuck,oneWayClutch.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (53): * Single equations (assignments): 49 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 6,1 7,1 5,1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.003864/0.2065, allocations: 2.392 MB / 0.4979 GB, free: 6.293 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00234/0.2089, allocations: 0.9742 MB / 0.4988 GB, free: 5.324 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.218e-06/0.2089, allocations: 0 / 0.4988 GB, free: 5.324 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001222/0.2101, allocations: 0.5195 MB / 0.4993 GB, free: 4.805 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001001/0.2111, allocations: 109 kB / 0.4994 GB, free: 4.703 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2336/0.4448, allocations: 5.468 MB / 0.5048 GB, free: 48.92 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004574/0.4452, allocations: 0.903 MB / 0.5056 GB, free: 48.21 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003828/0.4456, allocations: 60.81 kB / 0.5057 GB, free: 48.21 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002559/0.4459, allocations: 208.3 kB / 0.5059 GB, free: 48.2 MB / 382.1 MB Notification: Performance of SimCode: time 1.032e-06/0.4459, allocations: 1.5 kB / 0.5059 GB, free: 48.2 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04011/0.486, allocations: 19.12 MB / 0.5246 GB, free: 41.49 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001401/0.4862, allocations: 214.5 kB / 0.5248 GB, free: 41.25 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.263/2.75, allocations: 0 / 0.5248 GB, free: 41.25 MB / 382.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.TestFriction.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.TestFriction.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.TestFriction.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.TestFriction.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Rotational.TestFriction_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Rotational_TestFriction_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Rotational_TestFriction.fmu > ModelicaTest_4.0.0_ModelicaTest.Rotational.TestFriction.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Rotational.TestFriction_res.mat does not exist to compare? outputFormat=mat