Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.conf.json 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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_ForUsersGuide_SupportTorque1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_ForUsersGuide_SupportTorque1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001104/0.001104, allocations: 169.9 kB / 8.74 MB, free: 340 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.515/1.515, allocations: 221.5 MB / 230.7 MB, free: 7.578 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009169/0.000917, allocations: 96.22 kB / 281.6 MB, free: 5.324 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2346/0.2346, allocations: 44.15 MB / 376.5 MB, free: 3.051 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 1.47e-05/1.503e-05, allocations: 4.219 kB / 444.7 MB, free: 15.14 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1666/0.1666, allocations: 61.91 MB / 0.4948 GB, free: 1.164 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4541/0.6208, allocations: 88.7 MB / 0.5814 GB, free: 7.66 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000206/0.6211, allocations: 71.97 kB / 0.5814 GB, free: 7.59 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01244/0.6335, allocations: 4.606 MB / 0.5859 GB, free: 2.977 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.302e-06/0.6336, allocations: 0 / 0.5859 GB, free: 2.977 MB / 394.7 MB Notification: Performance of Transformations before backend: time 9.769e-06/0.6336, allocations: 4 kB / 0.5859 GB, free: 2.973 MB / 394.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.000719/0.6343, allocations: 0.5099 MB / 0.5864 GB, free: 2.422 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.382e-05/0.6344, allocations: 11.98 kB / 0.5865 GB, free: 2.41 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.629e-05/0.6344, allocations: 23.72 kB / 0.5865 GB, free: 2.387 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002607/0.6347, allocations: 250.5 kB / 0.5867 GB, free: 2.102 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.735e-05/0.6347, allocations: 8 kB / 0.5867 GB, free: 2.094 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.969e-05/0.6348, allocations: 20 kB / 0.5867 GB, free: 2.074 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003419/0.6351, allocations: 184.8 kB / 0.5869 GB, free: 1.895 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003661/0.6355, allocations: 210.4 kB / 0.5871 GB, free: 1.68 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.497e-05/0.6355, allocations: 7.906 kB / 0.5871 GB, free: 1.672 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.145e-05/0.6355, allocations: 0 / 0.5871 GB, free: 1.672 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.492e-06/0.6356, allocations: 4 kB / 0.5871 GB, free: 1.668 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001183/0.6367, allocations: 0.6505 MB / 0.5878 GB, free: 0.9766 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003012/0.6371, allocations: 201.1 kB / 0.588 GB, free: 0.7734 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001758/0.6373, allocations: 125.3 kB / 0.5881 GB, free: 0.6484 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.473e-05/0.6373, allocations: 4.234 kB / 0.5881 GB, free: 0.6445 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.927e-05/0.6373, allocations: 34.8 kB / 0.5881 GB, free: 0.6016 MB / 394.7 MB Notification: Performance of pre-optimization done (n=27): time 1.412e-06/0.6373, allocations: 7.938 kB / 0.5881 GB, free: 0.5938 MB / 394.7 MB Notification: Performance of matching and sorting (n=35): time 0.002087/0.6394, allocations: 1.094 MB / 0.5892 GB, free: 15.41 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.697e-05/0.6395, allocations: 59.41 kB / 0.5893 GB, free: 15.34 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001404/0.6396, allocations: 142 kB / 0.5894 GB, free: 15.19 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 3.855e-05/0.6397, allocations: 25.7 kB / 0.5894 GB, free: 15.16 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.672e-05/0.6398, allocations: 140.9 kB / 0.5895 GB, free: 15.02 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.665e-05/0.6399, allocations: 110.4 kB / 0.5897 GB, free: 14.91 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.703e-05/0.6399, allocations: 0 / 0.5897 GB, free: 14.91 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001342/0.64, allocations: 330.8 kB / 0.59 GB, free: 14.57 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001567/0.6402, allocations: 100 kB / 0.5901 GB, free: 14.48 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001844/0.6404, allocations: 139.4 kB / 0.5902 GB, free: 14.33 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002171/0.6406, allocations: 99.75 kB / 0.5903 GB, free: 14.23 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.432e-06/0.6406, allocations: 0 / 0.5903 GB, free: 14.23 MB / 410.7 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0006238/0.6412, allocations: 366.1 kB / 0.5906 GB, free: 13.86 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.63e-05/0.6413, allocations: 8.062 kB / 0.5906 GB, free: 13.86 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.41e-05/0.6413, allocations: 4 kB / 0.5907 GB, free: 13.85 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004421/0.6417, allocations: 184.7 kB / 0.5908 GB, free: 13.67 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002104/0.642, allocations: 51.92 kB / 0.5909 GB, free: 13.62 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007284/0.6427, allocations: 0.7253 MB / 0.5916 GB, free: 12.87 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002415/0.643, allocations: 48.05 kB / 0.5916 GB, free: 12.82 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.119e-05/0.643, allocations: 15.98 kB / 0.5916 GB, free: 12.8 MB / 410.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: bearingFriction1.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 8 ($PRE.bearingFriction1.startForward,bearingFriction1.startForward,$PRE.bearingFriction1.startBackward,bearingFriction1.startBackward,bearingFriction1.locked,$PRE.bearingFriction1.mode,bearingFriction1.mode,bearingFriction1.free) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (30): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.000171/0.6432, allocations: 115.9 kB / 0.5918 GB, free: 12.69 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0007086/0.6439, allocations: 353.8 kB / 0.5921 GB, free: 12.33 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.527e-05/0.644, allocations: 19.81 kB / 0.5921 GB, free: 12.31 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008153/0.6448, allocations: 405.4 kB / 0.5925 GB, free: 11.91 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.039e-06/0.6448, allocations: 4 kB / 0.5925 GB, free: 11.9 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.535e-06/0.6448, allocations: 0 / 0.5925 GB, free: 11.9 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.46e-06/0.6448, allocations: 4 kB / 0.5925 GB, free: 11.9 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001335/0.6462, allocations: 0.8593 MB / 0.5933 GB, free: 10.98 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.116e-06/0.6462, allocations: 0 / 0.5933 GB, free: 10.98 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002281/0.6464, allocations: 47.97 kB / 0.5934 GB, free: 10.93 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000319/0.6467, allocations: 168.7 kB / 0.5936 GB, free: 10.76 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.936e-05/0.6468, allocations: 15.98 kB / 0.5936 GB, free: 10.75 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006225/0.6474, allocations: 0.6888 MB / 0.5942 GB, free: 10.03 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.226e-06/0.6474, allocations: 0 / 0.5942 GB, free: 10.03 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009427/0.6484, allocations: 0.6065 MB / 0.5948 GB, free: 9.387 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001326/0.6485, allocations: 120.9 kB / 0.5949 GB, free: 9.25 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.127e-05/0.6486, allocations: 8 kB / 0.595 GB, free: 9.242 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002583/0.6488, allocations: 47.95 kB / 0.595 GB, free: 9.195 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001333/0.649, allocations: 59.84 kB / 0.5951 GB, free: 9.137 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.099e-05/0.649, allocations: 11.98 kB / 0.5951 GB, free: 9.125 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.000111/0.6492, allocations: 123.3 kB / 0.5952 GB, free: 9.004 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.6492, allocations: 0 / 0.5952 GB, free: 9.004 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0004706/0.6496, allocations: 64 kB / 0.5952 GB, free: 8.941 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 24 * 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.001736/0.6514, allocations: 1.293 MB / 0.5965 GB, free: 7.605 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.000763/0.6522, allocations: 294.1 kB / 0.5968 GB, free: 7.312 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.839e-06/0.6522, allocations: 192 / 0.5968 GB, free: 7.312 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002974/0.6525, allocations: 151.8 kB / 0.5969 GB, free: 7.164 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003908/0.6529, allocations: 19.94 kB / 0.597 GB, free: 7.145 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002146/0.655, allocations: 0.7235 MB / 0.5977 GB, free: 6.379 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003516/0.6554, allocations: 0.7602 MB / 0.5984 GB, free: 5.59 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 7.992e-05/0.6555, allocations: 14.08 kB / 0.5984 GB, free: 5.578 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001169/0.6556, allocations: 67.41 kB / 0.5985 GB, free: 5.512 MB / 410.7 MB Notification: Performance of SimCode: time 2.41e-07/0.6556, allocations: 0 / 0.5985 GB, free: 5.512 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02472/0.6804, allocations: 5.842 MB / 0.6042 GB, free: 15.7 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001713/0.6806, allocations: 148.1 kB / 0.6043 GB, free: 15.5 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.766/2.447, allocations: 3.938 kB / 0.6043 GB, free: 15.5 MB / 426.7 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Rotational_ForUsersGuide_SupportTorque1_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Rotational_ForUsersGuide_SupportTorque1.fmu > ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1_res.mat does not exist to compare? outputFormat=mat