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/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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) 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"}) [: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 trunk/package.mo): time 0.002237/0.002237, allocations: 209.3 kB / 8.541 MB, free: 1.824 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.444/1.444, allocations: 225.5 MB / 234.4 MB, free: 3.434 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009169/0.0009165, allocations: 96.61 kB / 286.3 MB, free: 5.172 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2182/0.2182, allocations: 45.15 MB / 383.3 MB, free: 0.5703 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2863/0.5046, allocations: 69.36 MB / 452.7 MB, free: 76.08 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.123/0.6276, allocations: 63.24 MB / 0.5039 GB, free: 12.92 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3443/0.972, allocations: 90.46 MB / 0.5922 GB, free: 12.58 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002767/0.9723, allocations: 66.03 kB / 0.5923 GB, free: 12.55 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: 56 * Number of variables: 56 Notification: Performance of Generate backend data structure: time 0.01797/0.9903, allocations: 6.365 MB / 0.5985 GB, free: 7.148 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.321e-05/0.9904, allocations: 12 kB / 0.5985 GB, free: 7.137 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001845/0.9906, allocations: 35.7 kB / 0.5985 GB, free: 7.102 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003494/0.9909, allocations: 252.8 kB / 0.5988 GB, free: 6.832 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.196e-05/0.991, allocations: 8 kB / 0.5988 GB, free: 6.824 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.209e-05/0.991, allocations: 12 kB / 0.5988 GB, free: 6.812 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004234/0.9915, allocations: 200.8 kB / 0.599 GB, free: 6.688 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003826/0.9918, allocations: 220 kB / 0.5992 GB, free: 6.523 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.897e-05/0.9919, allocations: 4 kB / 0.5992 GB, free: 6.52 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.73e-05/0.9919, allocations: 0 / 0.5992 GB, free: 6.52 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.238e-06/0.9919, allocations: 4 kB / 0.5992 GB, free: 6.516 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001372/0.9933, allocations: 0.6969 MB / 0.5999 GB, free: 5.914 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002413/0.9936, allocations: 141.9 kB / 0.6 GB, free: 5.816 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001916/0.9938, allocations: 124 kB / 0.6001 GB, free: 5.734 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.77e-05/0.9938, allocations: 4 kB / 0.6001 GB, free: 5.73 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.588e-05/0.9938, allocations: 34.44 kB / 0.6002 GB, free: 5.691 MB / 394.7 MB Notification: Performance of pre-optimization done (n=26): time 1.743e-06/0.9938, allocations: 0 / 0.6002 GB, free: 5.691 MB / 394.7 MB Notification: Performance of matching and sorting (n=34): time 0.002028/0.9959, allocations: 1.027 MB / 0.6012 GB, free: 4.746 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.245e-05/0.9959, allocations: 55.41 kB / 0.6012 GB, free: 4.68 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001705/0.9961, allocations: 165.7 kB / 0.6014 GB, free: 4.527 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 3.527e-05/0.9962, allocations: 28.39 kB / 0.6014 GB, free: 4.496 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.161e-05/0.9962, allocations: 127.5 kB / 0.6015 GB, free: 4.375 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.034e-05/0.9963, allocations: 118.6 kB / 0.6016 GB, free: 4.273 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.86e-05/0.9964, allocations: 7.938 kB / 0.6016 GB, free: 4.266 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001269/0.9965, allocations: 330.4 kB / 0.602 GB, free: 3.941 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000175/0.9967, allocations: 98.44 kB / 0.6021 GB, free: 3.887 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002034/0.9969, allocations: 137.6 kB / 0.6022 GB, free: 3.789 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001695/0.9971, allocations: 84.47 kB / 0.6023 GB, free: 3.738 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.213e-06/0.9971, allocations: 3.938 kB / 0.6023 GB, free: 3.734 MB / 394.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.000676/0.9978, allocations: 370.6 kB / 0.6026 GB, free: 3.461 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.39e-05/0.9978, allocations: 4 kB / 0.6026 GB, free: 3.457 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.014e-06/0.9978, allocations: 0 / 0.6026 GB, free: 3.457 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004109/0.9982, allocations: 173.8 kB / 0.6028 GB, free: 3.332 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002837/0.9985, allocations: 63.08 kB / 0.6029 GB, free: 3.273 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007967/0.9993, allocations: 0.7419 MB / 0.6036 GB, free: 2.598 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003007/0.9996, allocations: 48.02 kB / 0.6036 GB, free: 2.551 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.252e-05/0.9997, allocations: 15.5 kB / 0.6036 GB, free: 2.539 MB / 394.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 (bearingFriction1.free,$PRE.bearingFriction1.startForward,bearingFriction1.startForward,$PRE.bearingFriction1.startBackward,bearingFriction1.startBackward,bearingFriction1.locked,$PRE.bearingFriction1.mode,bearingFriction1.mode) * Number of discrete 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.0001693/0.9998, allocations: 115.5 kB / 0.6037 GB, free: 2.422 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.422e-05/0.9999, allocations: 19.81 kB / 0.6038 GB, free: 2.402 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.738e-05/1, allocations: 38.36 kB / 0.6038 GB, free: 2.387 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.208e-06/1, allocations: 0 / 0.6038 GB, free: 2.387 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.759e-05/1, allocations: 4 kB / 0.6038 GB, free: 2.383 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.6e-06/1, allocations: 3.938 kB / 0.6038 GB, free: 2.379 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00141/1.001, allocations: 0.825 MB / 0.6046 GB, free: 1.68 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.571e-06/1.001, allocations: 7.906 kB / 0.6046 GB, free: 1.672 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002557/1.002, allocations: 47.91 kB / 0.6047 GB, free: 1.625 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003424/1.002, allocations: 157.9 kB / 0.6048 GB, free: 1.508 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.97e-05/1.002, allocations: 3.984 kB / 0.6048 GB, free: 1.504 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006155/1.003, allocations: 0.6944 MB / 0.6055 GB, free: 0.8555 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.527e-06/1.003, allocations: 112 / 0.6055 GB, free: 0.8555 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0008378/1.004, allocations: 0.5681 MB / 0.6061 GB, free: 412 kB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001163/1.005, allocations: 1.057 MB / 0.6071 GB, free: 15.52 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001416/1.005, allocations: 131.1 kB / 0.6072 GB, free: 15.39 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.187e-05/1.005, allocations: 7.859 kB / 0.6072 GB, free: 15.38 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003115/1.005, allocations: 44.03 kB / 0.6073 GB, free: 15.34 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001295/1.005, allocations: 55.06 kB / 0.6073 GB, free: 15.29 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.825e-05/1.006, allocations: 7.438 kB / 0.6073 GB, free: 15.29 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.0001055/1.006, allocations: 134.4 kB / 0.6075 GB, free: 15.17 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001026/1.007, allocations: 75.59 kB / 0.6075 GB, free: 15.1 MB / 410.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) * 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.0006806/1.007, allocations: 273.6 kB / 0.6078 GB, free: 14.89 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0005864/1.008, allocations: 275.8 kB / 0.608 GB, free: 14.7 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.865e-06/1.008, allocations: 0 / 0.608 GB, free: 14.7 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002764/1.008, allocations: 147.1 kB / 0.6082 GB, free: 14.6 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003297/1.009, allocations: 26.98 kB / 0.6082 GB, free: 14.58 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001189/1.01, allocations: 461.4 kB / 0.6087 GB, free: 14.16 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005071/1.01, allocations: 0.7903 MB / 0.6094 GB, free: 13.34 MB / 410.7 MB Notification: Performance of SimCode: time 3.5e-07/1.01, allocations: 0 / 0.6094 GB, free: 13.34 MB / 410.7 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