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.00128/0.00128, allocations: 94.36 kB / 16.98 MB, free: 6.398 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.00134/0.00134, allocations: 182.8 kB / 17.87 MB, free: 5.957 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.431/1.431, allocations: 223.2 MB / 241.8 MB, free: 14.66 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2085/0.2085, allocations: 44.23 MB / 337.1 MB, free: 2.676 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003443/0.0003443, allocations: 11.98 kB / 409.6 MB, free: 27.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1404/0.1408, allocations: 61.92 MB / 471.5 MB, free: 13.66 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestFriction): time 0.004238/0.145, allocations: 3.165 MB / 474.7 MB, free: 10.48 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002409/0.1475, allocations: 1.232 MB / 475.9 MB, free: 9.242 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002704/0.1478, allocations: 11.94 kB / 475.9 MB, free: 9.23 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002099/0.148, allocations: 75.45 kB / 476 MB, free: 9.156 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004881/0.1485, allocations: 251.2 kB / 476.3 MB, free: 8.91 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006479/0.1492, allocations: 259.5 kB / 476.5 MB, free: 8.656 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007378/0.1499, allocations: 0.6339 MB / 477.1 MB, free: 8.016 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002552/0.1502, allocations: 144.9 kB / 477.3 MB, free: 7.867 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004266/0.1506, allocations: 382.8 kB / 477.7 MB, free: 7.492 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004914/0.1511, allocations: 438.4 kB / 478.1 MB, free: 7.062 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001018/0.1512, allocations: 40 kB / 478.1 MB, free: 7.023 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002058/0.1514, allocations: 75.97 kB / 478.2 MB, free: 6.949 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001585/0.1516, allocations: 155.4 kB / 478.4 MB, free: 6.797 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001271/0.1517, allocations: 145.3 kB / 478.5 MB, free: 6.648 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005632/0.1523, allocations: 0.6508 MB / 479.1 MB, free: 5.996 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.936e-06/0.1523, allocations: 0 / 479.1 MB, free: 5.996 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.1523, allocations: 0 / 479.1 MB, free: 5.996 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.765e-06/0.1523, allocations: 0 / 479.1 MB, free: 5.996 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.001969/0.1543, allocations: 1.001 MB / 480.1 MB, free: 4.945 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.87e-05/0.1544, allocations: 8.031 kB / 480.2 MB, free: 4.938 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001379/0.1545, allocations: 106.5 kB / 480.3 MB, free: 4.824 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001309/0.1547, allocations: 86.98 kB / 480.3 MB, free: 4.738 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005991/0.1553, allocations: 408.8 kB / 480.7 MB, free: 4.297 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.792e-05/0.1553, allocations: 49.31 kB / 480.8 MB, free: 4.25 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001261/0.1555, allocations: 67.86 kB / 480.9 MB, free: 4.184 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001414/0.1569, allocations: 0.8257 MB / 481.7 MB, free: 3.32 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.4e-05/0.1569, allocations: 15.84 kB / 481.7 MB, free: 3.305 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.413e-05/0.157, allocations: 27.98 kB / 481.7 MB, free: 3.277 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.536e-05/0.157, allocations: 12 kB / 481.7 MB, free: 3.266 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001548/0.1586, allocations: 0.7822 MB / 482.5 MB, free: 2.484 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004318/0.1629, allocations: 2.636 MB / 485.2 MB, free: 15.72 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00134/0.1643, allocations: 0.6397 MB / 485.8 MB, free: 15.05 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.015e-05/0.1644, allocations: 20.28 kB / 485.8 MB, free: 15.03 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.949e-05/0.1644, allocations: 38.94 kB / 485.9 MB, free: 14.98 MB / 366.1 MB Notification: Performance of pre-optimization done (n=72): time 3.307e-06/0.1644, allocations: 0 / 485.9 MB, free: 14.98 MB / 366.1 MB Notification: Performance of matching and sorting (n=76): time 0.007698/0.1721, allocations: 3.721 MB / 489.6 MB, free: 11 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.88e-05/0.1722, allocations: 140.7 kB / 489.7 MB, free: 10.84 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004703/0.1727, allocations: 421.8 kB / 490.1 MB, free: 10.41 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.768e-05/0.1728, allocations: 57.62 kB / 490.2 MB, free: 10.35 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001895/0.173, allocations: 284.3 kB / 490.5 MB, free: 10.06 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002066/0.1732, allocations: 268.4 kB / 490.7 MB, free: 9.797 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.223e-05/0.1732, allocations: 20 kB / 490.7 MB, free: 9.777 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001445/0.1734, allocations: 370.8 kB / 491.1 MB, free: 9.406 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007452/0.1741, allocations: 401.8 kB / 491.5 MB, free: 9.016 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008538/0.175, allocations: 0.5452 MB / 492 MB, free: 8.414 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000696/0.1757, allocations: 348 kB / 492.4 MB, free: 8.078 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.429e-06/0.1757, allocations: 4 kB / 492.4 MB, free: 8.074 MB / 366.1 MB Notification: Performance of matching and sorting (n=116) (initialization): time 0.002447/0.1782, allocations: 1.287 MB / 493.7 MB, free: 6.77 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.633e-05/0.1782, allocations: 8 kB / 493.7 MB, free: 6.762 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.098e-05/0.1782, allocations: 4 kB / 493.7 MB, free: 6.758 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001322/0.1796, allocations: 0.7568 MB / 494.4 MB, free: 5.988 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005393/0.1801, allocations: 155.7 kB / 494.6 MB, free: 5.836 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002156/0.1823, allocations: 2.686 MB / 497.3 MB, free: 3.047 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001006/0.1833, allocations: 203.8 kB / 497.5 MB, free: 2.848 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.915e-05/0.1834, allocations: 35.98 kB / 497.5 MB, free: 2.812 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.0003864/0.1838, allocations: 217.2 kB / 497.7 MB, free: 2.59 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001578/0.1839, allocations: 55.34 kB / 497.8 MB, free: 2.535 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001615/0.1841, allocations: 91.89 kB / 497.9 MB, free: 2.449 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.736e-06/0.1841, allocations: 8 kB / 497.9 MB, free: 2.441 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.1e-05/0.1841, allocations: 4 kB / 497.9 MB, free: 2.438 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.038e-05/0.1842, allocations: 7.984 kB / 497.9 MB, free: 2.43 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003773/0.1879, allocations: 2.197 MB / 0.4884 GB, free: 168 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.924e-06/0.188, allocations: 4 kB / 0.4884 GB, free: 164 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005306/0.1885, allocations: 115.9 kB / 0.4885 GB, free: 48 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001168/0.1897, allocations: 0.7255 MB / 0.4892 GB, free: 15.3 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.486e-05/0.1897, allocations: 35.89 kB / 0.4892 GB, free: 15.27 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00206/0.1918, allocations: 2.643 MB / 0.4918 GB, free: 12.53 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/0.1918, allocations: 0 / 0.4918 GB, free: 12.53 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003057/0.1949, allocations: 1.839 MB / 0.4936 GB, free: 10.64 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003775/0.1953, allocations: 224.1 kB / 0.4938 GB, free: 10.4 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001301/0.1954, allocations: 27.98 kB / 0.4938 GB, free: 10.38 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008832/0.1963, allocations: 175.8 kB / 0.494 GB, free: 10.2 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003036/0.1966, allocations: 163.6 kB / 0.4942 GB, free: 10.04 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.267e-05/0.1967, allocations: 35.95 kB / 0.4942 GB, free: 10.01 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003084/0.197, allocations: 291.1 kB / 0.4945 GB, free: 9.719 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.197, allocations: 0 / 0.4945 GB, free: 9.719 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008398/0.1979, allocations: 196 kB / 0.4947 GB, free: 9.527 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.003801/0.2017, allocations: 2.65 MB / 0.4972 GB, free: 6.82 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002227/0.2039, allocations: 0.9744 MB / 0.4982 GB, free: 5.848 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.498e-06/0.2039, allocations: 0 / 0.4982 GB, free: 5.848 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001174/0.2051, allocations: 0.5192 MB / 0.4987 GB, free: 5.332 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008468/0.206, allocations: 94.23 kB / 0.4988 GB, free: 5.242 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2629/0.4689, allocations: 8.153 MB / 0.5068 GB, free: 48.47 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005168/0.4694, allocations: 0.9216 MB / 0.5077 GB, free: 47.77 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003477/0.4698, allocations: 67.89 kB / 0.5077 GB, free: 47.77 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003192/0.4701, allocations: 206.4 kB / 0.5079 GB, free: 47.76 MB / 382.1 MB Notification: Performance of SimCode: time 9.92e-07/0.4701, allocations: 0 / 0.5079 GB, free: 47.76 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03919/0.5093, allocations: 19.06 MB / 0.5265 GB, free: 39.9 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.00017/0.5095, allocations: 211 kB / 0.5267 GB, free: 39.65 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.247/2.756, allocations: 0 / 0.5267 GB, free: 39.65 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