Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.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.Rotational.Examples.OneWayClutchDisengaged,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_OneWayClutchDisengaged",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_OneWayClutchDisengaged",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.0008821/0.0008821, allocations: 84.75 kB / 16.31 MB, free: 5.676 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.001034/0.001034, allocations: 181.4 kB / 17.21 MB, free: 5.59 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.325/1.325, allocations: 223.2 MB / 241.2 MB, free: 360 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003559/0.0003559, allocations: 4 kB / 300.9 MB, free: 6.363 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1359/0.1363, allocations: 50.42 MB / 351.3 MB, free: 3.934 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged): time 0.002615/0.139, allocations: 1.845 MB / 353.2 MB, free: 2.074 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001371/0.1404, allocations: 0.6471 MB / 353.8 MB, free: 1.422 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001766/0.1406, allocations: 3.938 kB / 353.8 MB, free: 1.418 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001801/0.1408, allocations: 23.84 kB / 353.9 MB, free: 1.395 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002262/0.141, allocations: 55.53 kB / 353.9 MB, free: 1.34 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003629/0.1414, allocations: 75.91 kB / 354 MB, free: 1.266 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003367/0.1417, allocations: 235.4 kB / 354.2 MB, free: 1.035 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001559/0.1419, allocations: 52.2 kB / 354.3 MB, free: 0.9766 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001976/0.1421, allocations: 95.64 kB / 354.4 MB, free: 0.8828 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002443/0.1424, allocations: 103.6 kB / 354.5 MB, free: 0.7812 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.186e-05/0.1424, allocations: 12 kB / 354.5 MB, free: 0.7695 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001543/0.1426, allocations: 51.91 kB / 354.5 MB, free: 0.7188 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.376e-05/0.1427, allocations: 47.81 kB / 354.6 MB, free: 0.6719 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001576/0.1428, allocations: 61.64 kB / 354.6 MB, free: 0.6055 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002834/0.1431, allocations: 191.7 kB / 354.8 MB, free: 428 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.484e-06/0.1431, allocations: 0 / 354.8 MB, free: 428 kB / 286.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.1431, allocations: 3.938 kB / 354.8 MB, free: 424 kB / 286.1 MB Notification: Performance of Transformations before backend: time 1.375e-05/0.1432, allocations: 0 / 354.8 MB, free: 424 kB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 47 * Number of variables: 47 Notification: Performance of Generate backend data structure: time 0.0008774/0.144, allocations: 495 kB / 355.3 MB, free: 15.88 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.193e-05/0.1441, allocations: 8.031 kB / 355.3 MB, free: 15.88 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.865e-05/0.1442, allocations: 54.5 kB / 355.4 MB, free: 15.81 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.256e-05/0.1443, allocations: 23.75 kB / 355.4 MB, free: 15.79 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000317/0.1446, allocations: 230.6 kB / 355.6 MB, free: 15.52 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.772e-05/0.1446, allocations: 16.44 kB / 355.6 MB, free: 15.51 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.379e-05/0.1447, allocations: 24 kB / 355.7 MB, free: 15.48 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004276/0.1451, allocations: 221.7 kB / 355.9 MB, free: 15.25 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.591e-05/0.1451, allocations: 4 kB / 355.9 MB, free: 15.25 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.126e-05/0.1452, allocations: 8 kB / 355.9 MB, free: 15.24 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.78e-05/0.1452, allocations: 7.953 kB / 355.9 MB, free: 15.23 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003384/0.1455, allocations: 169 kB / 356.1 MB, free: 15.07 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001185/0.1467, allocations: 0.772 MB / 356.8 MB, free: 14.23 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003342/0.1471, allocations: 134.4 kB / 357 MB, free: 14.09 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001521/0.1472, allocations: 81.12 kB / 357 MB, free: 14.01 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.062e-05/0.1473, allocations: 3.906 kB / 357 MB, free: 14.01 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.888e-05/0.1473, allocations: 38.56 kB / 357.1 MB, free: 13.96 MB / 302.1 MB Notification: Performance of pre-optimization done (n=18): time 1.313e-06/0.1473, allocations: 0 / 357.1 MB, free: 13.96 MB / 302.1 MB Notification: Performance of matching and sorting (n=20): time 0.00214/0.1495, allocations: 1.012 MB / 358.1 MB, free: 12.84 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.738e-05/0.1495, allocations: 51.41 kB / 358.1 MB, free: 12.78 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002318/0.1497, allocations: 210.6 kB / 358.3 MB, free: 12.56 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.449e-05/0.1498, allocations: 29.7 kB / 358.4 MB, free: 12.53 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001048/0.1499, allocations: 144.1 kB / 358.5 MB, free: 12.38 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.575e-05/0.15, allocations: 71 kB / 358.6 MB, free: 12.31 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.398e-05/0.15, allocations: 4 kB / 358.6 MB, free: 12.31 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001553/0.1501, allocations: 330.8 kB / 358.9 MB, free: 11.98 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001734/0.1503, allocations: 79.95 kB / 359 MB, free: 11.9 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000189/0.1505, allocations: 124.1 kB / 359.1 MB, free: 11.76 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001731/0.1507, allocations: 78.09 kB / 359.2 MB, free: 11.69 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.016e-06/0.1507, allocations: 3.984 kB / 359.2 MB, free: 11.68 MB / 302.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0005372/0.1513, allocations: 288.8 kB / 359.5 MB, free: 11.39 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.963e-05/0.1513, allocations: 4 kB / 359.5 MB, free: 11.39 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.066e-05/0.1513, allocations: 7.953 kB / 359.5 MB, free: 11.38 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002831/0.1516, allocations: 68.81 kB / 359.5 MB, free: 11.31 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001681/0.1518, allocations: 43.86 kB / 359.6 MB, free: 11.27 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006113/0.1524, allocations: 0.6304 MB / 360.2 MB, free: 10.61 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001925/0.1526, allocations: 31.95 kB / 360.3 MB, free: 10.58 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.111e-05/0.1526, allocations: 8 kB / 360.3 MB, free: 10.57 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.oneWayClutch.startForward,oneWayClutch.startForward,oneWayClutch.locked,$PRE.oneWayClutch.stuck,oneWayClutch.stuck,oneWayClutch.free) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 25 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 6} Notification: Performance of prepare postOptimizeDAE: time 0.0001388/0.1528, allocations: 141.8 kB / 360.4 MB, free: 10.43 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.685e-05/0.1528, allocations: 19.81 kB / 360.4 MB, free: 10.41 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.785e-05/0.1529, allocations: 21.88 kB / 360.4 MB, free: 10.39 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.625e-06/0.1529, allocations: 0 / 360.4 MB, free: 10.39 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.303e-06/0.1529, allocations: 4 kB / 360.4 MB, free: 10.38 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.48e-06/0.1529, allocations: 3.984 kB / 360.4 MB, free: 10.38 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009464/0.1539, allocations: 0.6046 MB / 361.1 MB, free: 9.711 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.516e-06/0.1539, allocations: 0 / 361.1 MB, free: 9.711 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001732/0.1541, allocations: 31.92 kB / 361.1 MB, free: 9.68 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001882/0.1543, allocations: 72.84 kB / 361.2 MB, free: 9.605 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.219e-05/0.1543, allocations: 7.953 kB / 361.2 MB, free: 9.598 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005003/0.1548, allocations: 0.611 MB / 361.8 MB, free: 8.961 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.3e-06/0.1548, allocations: 4.031 kB / 361.8 MB, free: 8.957 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006471/0.1555, allocations: 417.7 kB / 362.2 MB, free: 8.523 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001155/0.1556, allocations: 112.9 kB / 362.3 MB, free: 8.395 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.068e-05/0.1557, allocations: 8 kB / 362.3 MB, free: 8.387 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001785/0.1558, allocations: 27.97 kB / 362.3 MB, free: 8.359 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.762e-05/0.1559, allocations: 27.95 kB / 362.4 MB, free: 8.332 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.384e-05/0.156, allocations: 4 kB / 362.4 MB, free: 8.328 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001601/0.1561, allocations: 151.2 kB / 362.5 MB, free: 8.18 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.1561, allocations: 0 / 362.5 MB, free: 8.18 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003653/0.1565, allocations: 64 kB / 362.6 MB, free: 8.117 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (inertiaOut.w,oneWayClutch.phi_rel,oneWayClutch.w_rel,torqueLoad.phi) * Number of discrete variables: 3 (oneWayClutch.startForward,oneWayClutch.locked,oneWayClutch.stuck) * Number of discrete states: 2 (oneWayClutch.stuck,oneWayClutch.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 13 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.001081/0.1576, allocations: 0.9676 MB / 363.5 MB, free: 7.113 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005151/0.1581, allocations: 219.7 kB / 363.8 MB, free: 6.898 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.316e-06/0.1581, allocations: 0 / 363.8 MB, free: 6.898 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000245/0.1584, allocations: 103.8 kB / 363.9 MB, free: 6.797 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004151/0.1588, allocations: 32.17 kB / 363.9 MB, free: 6.766 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002814/0.1616, allocations: 1.648 MB / 365.5 MB, free: 5.062 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003582/0.162, allocations: 0.7404 MB / 366.3 MB, free: 4.293 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000106/0.1621, allocations: 21.94 kB / 366.3 MB, free: 4.27 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000102/0.1622, allocations: 59.42 kB / 366.4 MB, free: 4.211 MB / 302.1 MB Notification: Performance of SimCode: time 8.42e-07/0.1623, allocations: 0 / 366.4 MB, free: 4.211 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2013/0.3635, allocations: 4.913 MB / 371.3 MB, free: 24.2 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001405/0.3637, allocations: 227.5 kB / 371.5 MB, free: 23.96 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.787/2.151, allocations: 0 / 371.5 MB, free: 23.96 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_OneWayClutchDisengaged_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_OneWayClutchDisengaged.fmu > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged_res.mat does not exist to compare? outputFormat=mat