Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_SupportTorque1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_SupportTorque1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008772/0.0008772, allocations: 98.98 kB / 17 MB, free: 6.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008926/0.0008927, allocations: 192.7 kB / 17.91 MB, free: 5.926 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.386/1.386, allocations: 227.4 MB / 246 MB, free: 10.25 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.204/0.204, allocations: 45.92 MB / 344.1 MB, free: 11.98 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002716/0.0002718, allocations: 7.938 kB / 418.2 MB, free: 20.71 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1376/0.1379, allocations: 63.47 MB / 481.6 MB, free: 5.23 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1): time 0.002831/0.1408, allocations: 1.985 MB / 483.6 MB, free: 3.23 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001317/0.1421, allocations: 0.8147 MB / 484.4 MB, free: 2.41 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001079/0.1422, allocations: 4 kB / 484.4 MB, free: 2.406 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002377/0.1425, allocations: 39.77 kB / 484.5 MB, free: 2.367 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001619/0.1427, allocations: 59.53 kB / 484.5 MB, free: 2.309 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002569/0.1429, allocations: 111.8 kB / 484.6 MB, free: 2.199 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003463/0.1433, allocations: 303.4 kB / 484.9 MB, free: 1.902 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001645/0.1435, allocations: 75.62 kB / 485 MB, free: 1.836 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00022/0.1437, allocations: 131.5 kB / 485.1 MB, free: 1.707 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001878/0.1439, allocations: 135.5 kB / 485.3 MB, free: 1.574 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.356e-05/0.1439, allocations: 16 kB / 485.3 MB, free: 1.559 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001336/0.1441, allocations: 59.98 kB / 485.3 MB, free: 1.5 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.322e-05/0.1442, allocations: 63.73 kB / 485.4 MB, free: 1.438 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.48e-05/0.1442, allocations: 73.58 kB / 485.5 MB, free: 1.359 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002831/0.1445, allocations: 267.6 kB / 485.7 MB, free: 1.098 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.29e-06/0.1445, allocations: 4 kB / 485.7 MB, free: 1.094 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.1445, allocations: 0 / 485.7 MB, free: 1.094 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.124e-06/0.1446, allocations: 0 / 485.7 MB, free: 1.094 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: 56 * Number of variables: 56 Notification: Performance of Generate backend data structure: time 0.0007549/0.1453, allocations: 0.5419 MB / 486.3 MB, free: 0.5039 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.558e-05/0.1454, allocations: 12.03 kB / 486.3 MB, free: 0.4922 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.835e-05/0.1454, allocations: 54.53 kB / 486.4 MB, free: 440 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001461/0.1456, allocations: 35.72 kB / 486.4 MB, free: 404 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002619/0.1458, allocations: 247.3 kB / 486.6 MB, free: 112 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.914e-05/0.1459, allocations: 28.5 kB / 486.7 MB, free: 84 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.45e-05/0.1459, allocations: 23.91 kB / 486.7 MB, free: 60 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004885/0.1464, allocations: 264.8 kB / 486.9 MB, free: 15.8 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.389e-05/0.1465, allocations: 0 / 486.9 MB, free: 15.8 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.849e-05/0.1465, allocations: 12 kB / 487 MB, free: 15.79 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.695e-06/0.1465, allocations: 4 kB / 487 MB, free: 15.78 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004946/0.147, allocations: 230.1 kB / 487.2 MB, free: 15.55 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001302/0.1483, allocations: 0.7484 MB / 487.9 MB, free: 14.75 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000533/0.1489, allocations: 262.4 kB / 488.2 MB, free: 14.48 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000242/0.1491, allocations: 132.8 kB / 488.3 MB, free: 14.35 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.855e-05/0.1492, allocations: 3.953 kB / 488.3 MB, free: 14.35 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.423e-05/0.1492, allocations: 38.56 kB / 488.4 MB, free: 14.3 MB / 366.1 MB Notification: Performance of pre-optimization done (n=26): time 1.212e-06/0.1492, allocations: 0 / 488.4 MB, free: 14.3 MB / 366.1 MB Notification: Performance of matching and sorting (n=34): time 0.002953/0.1522, allocations: 1.426 MB / 489.8 MB, free: 12.76 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.925e-05/0.1522, allocations: 59.41 kB / 489.8 MB, free: 12.69 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002222/0.1524, allocations: 219.6 kB / 490.1 MB, free: 12.46 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.597e-05/0.1525, allocations: 33.69 kB / 490.1 MB, free: 12.43 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.5e-05/0.1526, allocations: 136.7 kB / 490.2 MB, free: 12.29 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.93e-05/0.1527, allocations: 118.3 kB / 490.3 MB, free: 12.17 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.005e-05/0.1527, allocations: 8 kB / 490.3 MB, free: 12.16 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001279/0.1528, allocations: 334.8 kB / 490.7 MB, free: 11.83 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002319/0.1531, allocations: 119.9 kB / 490.8 MB, free: 11.71 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002522/0.1533, allocations: 159.3 kB / 490.9 MB, free: 11.54 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002173/0.1536, allocations: 103.8 kB / 491 MB, free: 11.44 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.373e-06/0.1536, allocations: 3.938 kB / 491 MB, free: 11.44 MB / 366.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0007247/0.1543, allocations: 409.8 kB / 491.4 MB, free: 11.03 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.088e-05/0.1543, allocations: 4 kB / 491.5 MB, free: 11.02 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.756e-06/0.1544, allocations: 4 kB / 491.5 MB, free: 11.02 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000428/0.1548, allocations: 180.8 kB / 491.6 MB, free: 10.84 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002234/0.155, allocations: 55.91 kB / 491.7 MB, free: 10.79 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007574/0.1558, allocations: 0.7163 MB / 492.4 MB, free: 10.04 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002407/0.1561, allocations: 52.05 kB / 492.5 MB, free: 9.992 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.69e-05/0.1561, allocations: 12 kB / 492.5 MB, free: 9.98 MB / 366.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: 8 (bearingFriction1.free,$PRE.bearingFriction1.startForward,bearingFriction1.startForward,$PRE.bearingFriction1.startBackward,bearingFriction1.startBackward,bearingFriction1.locked,$PRE.bearingFriction1.mode,bearingFriction1.mode) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (30): * Single equations (assignments): 29 * 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 13} Notification: Performance of prepare postOptimizeDAE: time 0.0001816/0.1563, allocations: 152.6 kB / 492.6 MB, free: 9.824 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.821e-05/0.1563, allocations: 27.67 kB / 492.6 MB, free: 9.797 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.19e-05/0.1564, allocations: 34.66 kB / 492.7 MB, free: 9.766 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.801e-06/0.1565, allocations: 4 kB / 492.7 MB, free: 9.762 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.981e-06/0.1565, allocations: 4 kB / 492.7 MB, free: 9.758 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.901e-06/0.1565, allocations: 3.984 kB / 492.7 MB, free: 9.754 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001434/0.1579, allocations: 0.9129 MB / 493.6 MB, free: 8.773 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.886e-06/0.1579, allocations: 3.938 kB / 493.6 MB, free: 8.77 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002137/0.1582, allocations: 51.97 kB / 493.7 MB, free: 8.719 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003371/0.1585, allocations: 156.6 kB / 493.8 MB, free: 8.562 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.467e-05/0.1585, allocations: 11.98 kB / 493.8 MB, free: 8.551 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005718/0.1591, allocations: 0.6851 MB / 494.5 MB, free: 7.84 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/0.1591, allocations: 0 / 494.5 MB, free: 7.84 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009673/0.1601, allocations: 0.5987 MB / 495.1 MB, free: 7.219 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001284/0.1602, allocations: 128.8 kB / 495.2 MB, free: 7.074 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.01e-05/0.1603, allocations: 12 kB / 495.2 MB, free: 7.062 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002384/0.1605, allocations: 52.02 kB / 495.3 MB, free: 7.012 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001097/0.1607, allocations: 47.89 kB / 495.3 MB, free: 6.965 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.291e-05/0.1607, allocations: 15.98 kB / 495.4 MB, free: 6.949 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001486/0.1608, allocations: 148.2 kB / 495.5 MB, free: 6.805 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1608, allocations: 0 / 495.5 MB, free: 6.805 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003309/0.1612, allocations: 76 kB / 495.6 MB, free: 6.73 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (inertia3.phi,inertia3.w) * Number of discrete variables: 4 (bearingFriction1.startForward,bearingFriction1.startBackward,bearingFriction1.locked,bearingFriction1.mode) * Number of discrete states: 3 (bearingFriction1.mode,bearingFriction1.startBackward,bearingFriction1.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 23 * 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 10} Notification: Performance of Backend phase and start with SimCode phase: time 0.001938/0.1631, allocations: 1.383 MB / 497 MB, free: 5.43 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006739/0.1638, allocations: 311.8 kB / 497.3 MB, free: 5.125 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.424e-06/0.1638, allocations: 0 / 497.3 MB, free: 5.125 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003148/0.1641, allocations: 164.5 kB / 497.4 MB, free: 4.965 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003786/0.1645, allocations: 38.67 kB / 497.5 MB, free: 4.93 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003609/0.1682, allocations: 1.932 MB / 499.4 MB, free: 2.934 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003786/0.1686, allocations: 0.7525 MB / 0.4884 GB, free: 2.156 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001064/0.1687, allocations: 26.28 kB / 0.4884 GB, free: 2.129 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001262/0.1688, allocations: 75.41 kB / 0.4885 GB, free: 2.055 MB / 366.1 MB Notification: Performance of SimCode: time 4.21e-07/0.1688, allocations: 0 / 0.4885 GB, free: 2.055 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01821/0.187, allocations: 6.833 MB / 0.4952 GB, free: 11.41 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001956/0.1873, allocations: 260.8 kB / 0.4954 GB, free: 11.05 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.933/2.12, allocations: 0 / 0.4954 GB, free: 11.05 MB / 382.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_SupportTorque1_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_SupportTorque1.fmu > ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1_res.mat does not exist to compare? outputFormat=mat