Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.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.SimpleDriveTrain,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain",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.001184/0.001184, allocations: 198.4 kB / 8.54 MB, free: 1.832 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.459/1.459, allocations: 225.5 MB / 234.4 MB, free: 3.469 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001096/0.001096, allocations: 90.78 kB / 286.3 MB, free: 5.25 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2208/0.2208, allocations: 45.15 MB / 383.4 MB, free: 0.6367 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.289/0.5098, allocations: 69.37 MB / 452.7 MB, free: 76.13 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1261/0.6359, allocations: 63.24 MB / 0.5039 GB, free: 12.96 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4022/1.038, allocations: 87.72 MB / 0.5895 GB, free: 15.12 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000205/1.038, allocations: 67.59 kB / 0.5896 GB, free: 15.09 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.00832/1.047, allocations: 2.768 MB / 0.5923 GB, free: 12.73 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.513e-05/1.047, allocations: 12 kB / 0.5923 GB, free: 12.72 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000206/1.047, allocations: 27.8 kB / 0.5923 GB, free: 12.7 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002808/1.047, allocations: 200.6 kB / 0.5925 GB, free: 12.47 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.396e-05/1.047, allocations: 4 kB / 0.5925 GB, free: 12.46 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.785e-05/1.047, allocations: 10.94 kB / 0.5925 GB, free: 12.46 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001812/1.048, allocations: 72.02 kB / 0.5926 GB, free: 12.41 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001971/1.048, allocations: 98.83 kB / 0.5927 GB, free: 12.32 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.604e-05/1.048, allocations: 4 kB / 0.5927 GB, free: 12.32 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.643e-05/1.048, allocations: 0 / 0.5927 GB, free: 12.32 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.107e-05/1.048, allocations: 4 kB / 0.5927 GB, free: 12.32 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007359/1.049, allocations: 427.5 kB / 0.5931 GB, free: 11.92 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001482/1.049, allocations: 75.72 kB / 0.5932 GB, free: 11.86 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.193e-05/1.049, allocations: 55.16 kB / 0.5932 GB, free: 11.82 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.119e-05/1.049, allocations: 4 kB / 0.5932 GB, free: 11.82 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.971e-05/1.049, allocations: 30.56 kB / 0.5933 GB, free: 11.78 MB / 394.7 MB Notification: Performance of pre-optimization done (n=13): time 1.262e-06/1.049, allocations: 0 / 0.5933 GB, free: 11.78 MB / 394.7 MB Notification: Performance of matching and sorting (n=19): time 0.001365/1.05, allocations: 0.7054 MB / 0.594 GB, free: 11.07 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.514e-05/1.05, allocations: 58.14 kB / 0.594 GB, free: 11 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.825e-05/1.05, allocations: 115.4 kB / 0.5941 GB, free: 10.89 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.693e-05/1.05, allocations: 25.7 kB / 0.5942 GB, free: 10.86 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.184e-05/1.051, allocations: 111.9 kB / 0.5943 GB, free: 10.75 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.8e-05/1.051, allocations: 64.78 kB / 0.5943 GB, free: 10.69 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.285e-06/1.051, allocations: 0 / 0.5943 GB, free: 10.69 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001339/1.051, allocations: 325.9 kB / 0.5946 GB, free: 10.37 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.789e-05/1.051, allocations: 42.05 kB / 0.5947 GB, free: 10.33 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.681e-05/1.051, allocations: 61.69 kB / 0.5947 GB, free: 10.28 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.106e-05/1.051, allocations: 44.78 kB / 0.5948 GB, free: 10.25 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.41e-07/1.051, allocations: 0 / 0.5948 GB, free: 10.25 MB / 394.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003599/1.051, allocations: 176.3 kB / 0.5949 GB, free: 10.1 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.975e-05/1.051, allocations: 8.031 kB / 0.595 GB, free: 10.09 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.048e-05/1.051, allocations: 4 kB / 0.595 GB, free: 10.09 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001897/1.052, allocations: 38.53 kB / 0.595 GB, free: 10.06 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002077/1.052, allocations: 39.91 kB / 0.595 GB, free: 10.02 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001696/1.054, allocations: 1.469 MB / 0.5965 GB, free: 8.535 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.074e-05/1.054, allocations: 4 kB / 0.5965 GB, free: 8.531 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.814e-05/1.054, allocations: 11.16 kB / 0.5965 GB, free: 8.523 MB / 394.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: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 16 * 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: 1 {(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.504e-05/1.054, allocations: 113 kB / 0.5966 GB, free: 8.406 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.827e-05/1.054, allocations: 11.91 kB / 0.5966 GB, free: 8.395 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.929e-05/1.054, allocations: 11.44 kB / 0.5966 GB, free: 8.387 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.107e-06/1.054, allocations: 4 kB / 0.5966 GB, free: 8.383 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.664e-06/1.054, allocations: 3.906 kB / 0.5966 GB, free: 8.379 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.618e-06/1.054, allocations: 0 / 0.5966 GB, free: 8.379 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007021/1.055, allocations: 0.492 MB / 0.5971 GB, free: 7.914 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.775e-06/1.055, allocations: 0 / 0.5971 GB, free: 7.914 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001967/1.055, allocations: 43.56 kB / 0.5971 GB, free: 7.875 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001187/1.055, allocations: 28.34 kB / 0.5972 GB, free: 7.848 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.22e-05/1.055, allocations: 0 / 0.5972 GB, free: 7.848 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001189/1.056, allocations: 1.309 MB / 0.5984 GB, free: 6.488 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.226e-06/1.056, allocations: 8 kB / 0.5985 GB, free: 6.48 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000509/1.057, allocations: 329 kB / 0.5988 GB, free: 6.191 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0007188/1.057, allocations: 0.7411 MB / 0.5995 GB, free: 5.5 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.006e-05/1.058, allocations: 88.92 kB / 0.5996 GB, free: 5.395 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.434e-05/1.058, allocations: 4 kB / 0.5996 GB, free: 5.391 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000104/1.058, allocations: 0 / 0.5996 GB, free: 5.391 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.957e-05/1.058, allocations: 15.92 kB / 0.5996 GB, free: 5.379 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.019e-05/1.058, allocations: 7.938 kB / 0.5996 GB, free: 5.371 MB / 394.7 MB Notification: Performance of sort global known variables: time 6.342e-05/1.058, allocations: 94.83 kB / 0.5997 GB, free: 5.281 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0009869/1.059, allocations: 39.91 kB / 0.5997 GB, free: 5.242 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (J1.phi,J1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 15 * 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: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001692/1.059, allocations: 98.62 kB / 0.5998 GB, free: 5.137 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0004783/1.059, allocations: 218.3 kB / 0.6 GB, free: 4.941 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/1.059, allocations: 0 / 0.6 GB, free: 4.941 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002206/1.06, allocations: 168 kB / 0.6002 GB, free: 4.785 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000246/1.06, allocations: 7.984 kB / 0.6002 GB, free: 4.777 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007493/1.061, allocations: 326.9 kB / 0.6005 GB, free: 4.457 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004509/1.061, allocations: 0.7348 MB / 0.6012 GB, free: 3.699 MB / 394.7 MB Notification: Performance of SimCode: time 5.31e-07/1.061, allocations: 0 / 0.6012 GB, free: 3.699 MB / 394.7 MB (rm -f ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain.fmu > ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.mat does not exist to compare? outputFormat=mat