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"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001396/0.001396, allocations: 179 kB / 8.517 MB, free: 1.855 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.388/1.388, allocations: 221.4 MB / 230.3 MB, free: 7.777 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.0008888/0.0008888, allocations: 91.67 kB / 281.2 MB, free: 5.535 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.2248/0.2248, allocations: 44.14 MB / 376.1 MB, free: 3.262 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2898/0.5146, allocations: 68.03 MB / 444.1 MB, free: 15.55 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1369/0.6516, allocations: 61.91 MB / 0.4942 GB, free: 1.57 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3958/1.047, allocations: 88.62 MB / 0.5807 GB, free: 8.223 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001845/1.048, allocations: 71.97 kB / 0.5808 GB, free: 8.152 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.01407/1.062, allocations: 4.87 MB / 0.5855 GB, free: 3.238 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.738e-05/1.062, allocations: 15.94 kB / 0.5856 GB, free: 3.223 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.343e-05/1.062, allocations: 31.72 kB / 0.5856 GB, free: 3.191 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003051/1.062, allocations: 246.4 kB / 0.5858 GB, free: 2.914 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.703e-05/1.062, allocations: 11.91 kB / 0.5858 GB, free: 2.902 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.821e-05/1.062, allocations: 12 kB / 0.5858 GB, free: 2.891 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003796/1.063, allocations: 188.8 kB / 0.586 GB, free: 2.707 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003699/1.063, allocations: 214.4 kB / 0.5862 GB, free: 2.488 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.44e-05/1.063, allocations: 0 / 0.5862 GB, free: 2.488 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.451e-05/1.063, allocations: 0 / 0.5862 GB, free: 2.488 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.107e-06/1.063, allocations: 7.906 kB / 0.5862 GB, free: 2.48 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001288/1.064, allocations: 0.6622 MB / 0.5869 GB, free: 1.777 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002405/1.065, allocations: 158.1 kB / 0.587 GB, free: 1.617 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002027/1.065, allocations: 127.1 kB / 0.5872 GB, free: 1.492 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.92e-05/1.065, allocations: 240 / 0.5872 GB, free: 1.492 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.492e-05/1.065, allocations: 42.8 kB / 0.5872 GB, free: 1.441 MB / 394.7 MB Notification: Performance of pre-optimization done (n=27): time 3.025e-06/1.065, allocations: 4 kB / 0.5872 GB, free: 1.438 MB / 394.7 MB Notification: Performance of matching and sorting (n=35): time 0.002379/1.067, allocations: 1.081 MB / 0.5883 GB, free: 264 kB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.555e-05/1.067, allocations: 63.34 kB / 0.5883 GB, free: 188 kB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001256/1.068, allocations: 129.8 kB / 0.5884 GB, free: 52 kB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 3.903e-05/1.068, allocations: 33.7 kB / 0.5885 GB, free: 12 kB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.884e-05/1.068, allocations: 128.6 kB / 0.5886 GB, free: 15.88 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.444e-05/1.068, allocations: 114.3 kB / 0.5887 GB, free: 15.77 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.852e-05/1.068, allocations: 3.938 kB / 0.5887 GB, free: 15.77 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.000141/1.068, allocations: 330.8 kB / 0.589 GB, free: 15.43 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001977/1.068, allocations: 96 kB / 0.5891 GB, free: 15.34 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002183/1.068, allocations: 147.3 kB / 0.5893 GB, free: 15.18 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002496/1.069, allocations: 91.81 kB / 0.5893 GB, free: 15.09 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/1.069, allocations: 0 / 0.5893 GB, free: 15.09 MB / 410.7 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0007795/1.069, allocations: 366.1 kB / 0.5897 GB, free: 14.73 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.792e-05/1.069, allocations: 9 kB / 0.5897 GB, free: 14.72 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.673e-05/1.07, allocations: 4 kB / 0.5897 GB, free: 14.71 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004489/1.07, allocations: 176.7 kB / 0.5899 GB, free: 14.54 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002665/1.07, allocations: 59.91 kB / 0.5899 GB, free: 14.48 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008058/1.071, allocations: 0.7332 MB / 0.5906 GB, free: 13.72 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003033/1.071, allocations: 55.91 kB / 0.5907 GB, free: 13.67 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.573e-05/1.071, allocations: 12 kB / 0.5907 GB, free: 13.66 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.0002041/1.072, allocations: 121.2 kB / 0.5908 GB, free: 13.54 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.187e-05/1.072, allocations: 19.72 kB / 0.5908 GB, free: 13.52 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009796/1.073, allocations: 400.7 kB / 0.5912 GB, free: 13.11 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.145e-06/1.073, allocations: 4.062 kB / 0.5912 GB, free: 13.11 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.02e-05/1.073, allocations: 4 kB / 0.5912 GB, free: 13.11 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.658e-06/1.073, allocations: 3.984 kB / 0.5912 GB, free: 13.1 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001598/1.074, allocations: 0.8513 MB / 0.5921 GB, free: 12.19 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.478e-06/1.074, allocations: 0 / 0.5921 GB, free: 12.19 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002762/1.075, allocations: 59.91 kB / 0.5921 GB, free: 12.13 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003808/1.075, allocations: 160.8 kB / 0.5923 GB, free: 11.97 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.298e-05/1.075, allocations: 3.984 kB / 0.5923 GB, free: 11.96 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006838/1.076, allocations: 0.6967 MB / 0.593 GB, free: 11.24 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.879e-06/1.076, allocations: 0 / 0.593 GB, free: 11.24 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001037/1.077, allocations: 0.6033 MB / 0.5936 GB, free: 10.6 MB / 410.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001383/1.078, allocations: 1.111 MB / 0.5946 GB, free: 9.449 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001433/1.078, allocations: 120.8 kB / 0.5948 GB, free: 9.312 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.294e-05/1.078, allocations: 7.984 kB / 0.5948 GB, free: 9.305 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003043/1.079, allocations: 44.03 kB / 0.5948 GB, free: 9.262 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001375/1.079, allocations: 67.81 kB / 0.5949 GB, free: 9.195 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.839e-05/1.079, allocations: 15.98 kB / 0.5949 GB, free: 9.18 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.0001011/1.079, allocations: 115.3 kB / 0.595 GB, free: 9.066 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001147/1.08, allocations: 68.12 kB / 0.5951 GB, free: 9 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.000282/1.081, allocations: 120 kB / 0.5952 GB, free: 8.875 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0006979/1.081, allocations: 305.9 kB / 0.5955 GB, free: 8.57 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.526e-06/1.081, allocations: 4.125 kB / 0.5955 GB, free: 8.566 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003198/1.082, allocations: 139.8 kB / 0.5956 GB, free: 8.43 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000324/1.082, allocations: 19.89 kB / 0.5956 GB, free: 8.41 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001053/1.083, allocations: 447.8 kB / 0.596 GB, free: 7.949 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000427/1.083, allocations: 0.7832 MB / 0.5968 GB, free: 7.141 MB / 410.7 MB Notification: Performance of SimCode: time 2.5e-07/1.083, allocations: 0 / 0.5968 GB, free: 7.141 MB / 410.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)