Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Rotational_ForUsersGuide_SupportTorque1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Rotational_ForUsersGuide_SupportTorque1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002255/0.002255, allocations: 189.2 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.102/2.102, allocations: 205.4 MB / 222.5 MB, free: 13.76 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001108/0.001107, allocations: 90.92 kB / 270.9 MB, free: 13.29 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2943/0.2943, allocations: 43.55 MB / 362.7 MB, free: 11.3 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004629/0.000463, allocations: 12 kB / 431.5 MB, free: 20.18 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1282/0.1287, allocations: 58.86 MB / 490.3 MB, free: 9.254 MB / 330.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1): time 0.003376/0.1321, allocations: 1.797 MB / 492.1 MB, free: 7.438 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.001932/0.1341, allocations: 0.7494 MB / 492.9 MB, free: 6.68 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002512/0.1344, allocations: 7.938 kB / 492.9 MB, free: 6.672 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001453/0.1345, allocations: 27.78 kB / 492.9 MB, free: 6.645 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002815/0.1348, allocations: 67.83 kB / 493 MB, free: 6.578 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005157/0.1354, allocations: 95.83 kB / 493.1 MB, free: 6.484 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004099/0.1358, allocations: 208 kB / 493.3 MB, free: 6.281 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002273/0.136, allocations: 64.78 kB / 493.3 MB, free: 6.215 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000299/0.1364, allocations: 123.5 kB / 493.4 MB, free: 6.094 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002789/0.1367, allocations: 139.5 kB / 493.6 MB, free: 5.957 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 5.375e-05/0.1367, allocations: 12 kB / 493.6 MB, free: 5.945 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001886/0.1369, allocations: 55.95 kB / 493.6 MB, free: 5.891 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 9.191e-05/0.137, allocations: 47.81 kB / 493.7 MB, free: 5.844 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 8.955e-05/0.1371, allocations: 65.58 kB / 493.8 MB, free: 5.773 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004363/0.1376, allocations: 239.7 kB / 494 MB, free: 5.539 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.475e-06/0.1376, allocations: 3.938 kB / 494 MB, free: 5.535 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.523e-06/0.1376, allocations: 0 / 494 MB, free: 5.535 MB / 330.7 MB Notification: Performance of Transformations before backend: time 5.922e-06/0.1376, allocations: 0 / 494 MB, free: 5.535 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 54 * Number of variables: 54 Notification: Performance of Generate backend data structure: time 0.001383/0.139, allocations: 0.5184 MB / 494.5 MB, free: 4.969 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.582e-05/0.1391, allocations: 12.03 kB / 494.5 MB, free: 4.957 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001016/0.1392, allocations: 54.48 kB / 494.6 MB, free: 4.895 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.696e-05/0.1393, allocations: 35.66 kB / 494.6 MB, free: 4.859 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003887/0.1397, allocations: 230.7 kB / 494.8 MB, free: 4.594 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.56e-05/0.1398, allocations: 20.44 kB / 494.9 MB, free: 4.574 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.344e-05/0.1399, allocations: 23.91 kB / 494.9 MB, free: 4.551 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008613/0.1407, allocations: 263.2 kB / 495.1 MB, free: 4.289 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.243e-05/0.1408, allocations: 4 kB / 495.1 MB, free: 4.285 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.537e-05/0.1408, allocations: 8 kB / 495.1 MB, free: 4.277 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.425e-05/0.1409, allocations: 8 kB / 495.2 MB, free: 4.27 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008634/0.1417, allocations: 241.5 kB / 495.4 MB, free: 4.031 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002253/0.144, allocations: 0.7442 MB / 496.1 MB, free: 3.238 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008953/0.1449, allocations: 254.3 kB / 496.4 MB, free: 2.98 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.579e-05/0.145, allocations: 4 kB / 496.4 MB, free: 2.977 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.865e-05/0.1451, allocations: 42.56 kB / 496.4 MB, free: 2.926 MB / 330.7 MB Notification: Performance of pre-optimization done (n=25): time 2.435e-06/0.1451, allocations: 0 / 496.4 MB, free: 2.926 MB / 330.7 MB Notification: Performance of matching and sorting (n=33): time 0.005369/0.1504, allocations: 1.503 MB / 497.9 MB, free: 1.312 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.232e-05/0.1505, allocations: 55.41 kB / 498 MB, free: 1.246 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003437/0.1509, allocations: 210.3 kB / 498.2 MB, free: 1.027 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 5.849e-05/0.151, allocations: 33.7 kB / 498.2 MB, free: 0.9883 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001433/0.1511, allocations: 199 kB / 498.4 MB, free: 0.793 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001412/0.1513, allocations: 106.5 kB / 498.5 MB, free: 0.6875 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.277e-05/0.1513, allocations: 8 kB / 498.5 MB, free: 0.6797 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001434/0.1515, allocations: 322.8 kB / 498.8 MB, free: 364 kB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004466/0.1519, allocations: 123.9 kB / 499 MB, free: 240 kB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004987/0.1524, allocations: 175.1 kB / 499.1 MB, free: 52 kB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000438/0.1529, allocations: 111.9 kB / 499.2 MB, free: 15.94 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.1529, allocations: 0 / 499.2 MB, free: 15.94 MB / 346.7 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.001606/0.1545, allocations: 457.8 kB / 499.7 MB, free: 15.48 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.537e-05/0.1546, allocations: 4 kB / 499.7 MB, free: 15.48 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.217e-06/0.1546, allocations: 0 / 499.7 MB, free: 15.48 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008753/0.1555, allocations: 236.7 kB / 499.9 MB, free: 15.24 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004271/0.1559, allocations: 59.91 kB / 500 MB, free: 15.18 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0012/0.1571, allocations: 0.7553 MB / 0.489 GB, free: 14.4 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005268/0.1577, allocations: 39.97 kB / 0.489 GB, free: 14.36 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.329e-05/0.1578, allocations: 24.05 kB / 0.4891 GB, free: 14.34 MB / 346.7 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 12} Notification: Performance of prepare postOptimizeDAE: time 0.0002572/0.158, allocations: 146 kB / 0.4892 GB, free: 14.19 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.846e-05/0.1581, allocations: 19.81 kB / 0.4892 GB, free: 14.17 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001138/0.1583, allocations: 42.58 kB / 0.4893 GB, free: 14.13 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.633e-05/0.1583, allocations: 4 kB / 0.4893 GB, free: 14.12 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.15e-05/0.1583, allocations: 0 / 0.4893 GB, free: 14.12 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.447e-05/0.1584, allocations: 3.953 kB / 0.4893 GB, free: 14.12 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002642/0.161, allocations: 0.9519 MB / 0.4902 GB, free: 13.11 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.561e-06/0.1611, allocations: 4 kB / 0.4902 GB, free: 13.1 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004484/0.1615, allocations: 51.91 kB / 0.4903 GB, free: 13.05 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007589/0.1623, allocations: 216.7 kB / 0.4905 GB, free: 12.84 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.853e-05/0.1624, allocations: 7.984 kB / 0.4905 GB, free: 12.83 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001051/0.1635, allocations: 0.7124 MB / 0.4912 GB, free: 12.09 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.859e-06/0.1635, allocations: 4.062 kB / 0.4912 GB, free: 12.09 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002032/0.1655, allocations: 0.6547 MB / 0.4918 GB, free: 11.4 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002341/0.1658, allocations: 128.8 kB / 0.4919 GB, free: 11.26 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.032e-05/0.1659, allocations: 8 kB / 0.4919 GB, free: 11.25 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005286/0.1664, allocations: 52.02 kB / 0.492 GB, free: 11.2 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002064/0.1667, allocations: 59.88 kB / 0.492 GB, free: 11.14 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.785e-05/0.1667, allocations: 4 kB / 0.4921 GB, free: 11.14 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002153/0.1669, allocations: 144.5 kB / 0.4922 GB, free: 11 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.8e-07/0.167, allocations: 0 / 0.4922 GB, free: 11 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0005323/0.1675, allocations: 76 kB / 0.4923 GB, free: 10.92 MB / 346.7 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 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.002593/0.1701, allocations: 1.296 MB / 0.4935 GB, free: 9.59 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001284/0.1714, allocations: 315.7 kB / 0.4938 GB, free: 9.281 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.687e-06/0.1715, allocations: 0 / 0.4938 GB, free: 9.281 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005817/0.1721, allocations: 164 kB / 0.494 GB, free: 9.121 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004764/0.1726, allocations: 43.94 kB / 0.494 GB, free: 9.082 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006797/0.1794, allocations: 2.435 MB / 0.4964 GB, free: 6.574 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004737/0.1799, allocations: 0.7568 MB / 0.4971 GB, free: 5.793 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000217/0.1802, allocations: 71.41 kB / 0.4972 GB, free: 5.723 MB / 346.7 MB Notification: Performance of SimCode: time 1.362e-06/0.1802, allocations: 0 / 0.4972 GB, free: 5.723 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.109/3.29, allocations: 4.9 MB / 0.502 GB, free: 0.8203 MB / 346.7 MB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Rotational_ForUsersGuide_SupportTorque1_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Rotational_ForUsersGuide_SupportTorque1.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1_res.mat does not exist to compare? outputFormat=mat