Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.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.SimpleDriveTrain,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,fileNamePrefix="ModelicaTest_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001028/0.001028, allocations: 183.6 kB / 8.52 MB, free: 1.844 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.282/1.282, allocations: 221.4 MB / 230.3 MB, free: 7.664 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.0009121/0.000912, allocations: 94.09 kB / 281.2 MB, free: 5.469 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.2113/0.2113, allocations: 44.15 MB / 376.1 MB, free: 3.258 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.299/0.5103, allocations: 68.03 MB / 444.1 MB, free: 15.56 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1654/0.6757, allocations: 61.91 MB / 0.4942 GB, free: 1.582 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3754/1.051, allocations: 86.66 MB / 0.5788 GB, free: 10.09 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002694/1.051, allocations: 68.34 kB / 0.5789 GB, free: 10.06 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.007309/1.059, allocations: 2.665 MB / 0.5815 GB, free: 7.363 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.576e-05/1.059, allocations: 15.94 kB / 0.5815 GB, free: 7.348 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.971e-05/1.059, allocations: 11.81 kB / 0.5815 GB, free: 7.336 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002228/1.059, allocations: 202.8 kB / 0.5817 GB, free: 7.098 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.368e-05/1.059, allocations: 4 kB / 0.5817 GB, free: 7.094 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.274e-05/1.059, allocations: 11.98 kB / 0.5817 GB, free: 7.082 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000173/1.059, allocations: 67.92 kB / 0.5818 GB, free: 7.016 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001799/1.06, allocations: 97.56 kB / 0.5819 GB, free: 6.914 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.562e-05/1.06, allocations: 4 kB / 0.5819 GB, free: 6.91 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.529e-05/1.06, allocations: 8 kB / 0.5819 GB, free: 6.902 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.493e-06/1.06, allocations: 0 / 0.5819 GB, free: 6.902 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007115/1.06, allocations: 424.8 kB / 0.5823 GB, free: 6.449 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001363/1.061, allocations: 77.64 kB / 0.5824 GB, free: 6.367 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.608e-05/1.061, allocations: 44.86 kB / 0.5824 GB, free: 6.32 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.325e-05/1.061, allocations: 4 kB / 0.5824 GB, free: 6.316 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.828e-05/1.061, allocations: 34.55 kB / 0.5824 GB, free: 6.273 MB / 394.7 MB Notification: Performance of pre-optimization done (n=13): time 2.155e-06/1.061, allocations: 0 / 0.5824 GB, free: 6.273 MB / 394.7 MB Notification: Performance of matching and sorting (n=19): time 0.001276/1.062, allocations: 0.7005 MB / 0.5831 GB, free: 5.48 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.278e-05/1.062, allocations: 55.39 kB / 0.5832 GB, free: 5.414 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.2e-05/1.062, allocations: 108.5 kB / 0.5833 GB, free: 5.305 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.713e-05/1.062, allocations: 25.7 kB / 0.5833 GB, free: 5.273 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.1e-05/1.062, allocations: 116.3 kB / 0.5834 GB, free: 5.156 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.288e-05/1.062, allocations: 63.11 kB / 0.5835 GB, free: 5.094 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.855e-06/1.062, allocations: 0 / 0.5835 GB, free: 5.094 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001359/1.062, allocations: 329.6 kB / 0.5838 GB, free: 4.766 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.279e-05/1.063, allocations: 32.38 kB / 0.5838 GB, free: 4.73 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.072e-05/1.063, allocations: 71.92 kB / 0.5839 GB, free: 4.648 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.806e-05/1.063, allocations: 43.92 kB / 0.5839 GB, free: 4.605 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.22e-07/1.063, allocations: 4 kB / 0.5839 GB, free: 4.602 MB / 394.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003015/1.063, allocations: 174.1 kB / 0.5841 GB, free: 4.426 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.337e-05/1.063, allocations: 4 kB / 0.5841 GB, free: 4.422 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.798e-06/1.063, allocations: 7.984 kB / 0.5841 GB, free: 4.414 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001598/1.063, allocations: 40.88 kB / 0.5841 GB, free: 4.371 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001857/1.063, allocations: 35.92 kB / 0.5842 GB, free: 4.336 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001357/1.065, allocations: 1.475 MB / 0.5856 GB, free: 2.746 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.777e-05/1.065, allocations: 8.062 kB / 0.5856 GB, free: 2.738 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.448e-05/1.065, allocations: 4 kB / 0.5856 GB, free: 2.734 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 0.0001133/1.065, allocations: 108.8 kB / 0.5857 GB, free: 2.621 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.839e-05/1.065, allocations: 11.91 kB / 0.5857 GB, free: 2.609 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.893e-05/1.065, allocations: 12.62 kB / 0.5858 GB, free: 2.59 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.028e-06/1.065, allocations: 4 kB / 0.5858 GB, free: 2.586 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.041e-05/1.065, allocations: 3.984 kB / 0.5858 GB, free: 2.582 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.953e-06/1.065, allocations: 7.906 kB / 0.5858 GB, free: 2.574 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006588/1.066, allocations: 499 kB / 0.5863 GB, free: 2.039 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.458e-06/1.066, allocations: 3.984 kB / 0.5863 GB, free: 2.035 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001885/1.066, allocations: 43.95 kB / 0.5863 GB, free: 1.992 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000101/1.066, allocations: 32.75 kB / 0.5863 GB, free: 1.957 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.156e-05/1.066, allocations: 0 / 0.5863 GB, free: 1.957 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009421/1.067, allocations: 1.307 MB / 0.5876 GB, free: 0.5352 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.268e-06/1.067, allocations: 3.938 kB / 0.5876 GB, free: 0.5312 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003856/1.067, allocations: 319.1 kB / 0.5879 GB, free: 196 kB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0005615/1.068, allocations: 0.7416 MB / 0.5886 GB, free: 15.42 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.429e-05/1.068, allocations: 88.92 kB / 0.5887 GB, free: 15.32 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.806e-05/1.068, allocations: 3.938 kB / 0.5887 GB, free: 15.31 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001018/1.068, allocations: 12.05 kB / 0.5887 GB, free: 15.3 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.838e-05/1.068, allocations: 7.984 kB / 0.5887 GB, free: 15.29 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.056e-05/1.068, allocations: 8 kB / 0.5888 GB, free: 15.29 MB / 410.7 MB Notification: Performance of sort global known variables: time 5.557e-05/1.068, allocations: 95.28 kB / 0.5888 GB, free: 15.19 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0008914/1.069, allocations: 32 kB / 0.5889 GB, free: 15.16 MB / 410.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.000131/1.069, allocations: 95.23 kB / 0.589 GB, free: 15.05 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0003834/1.07, allocations: 225.5 kB / 0.5892 GB, free: 14.82 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/1.07, allocations: 4 kB / 0.5892 GB, free: 14.82 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002097/1.07, allocations: 165.8 kB / 0.5893 GB, free: 14.65 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002262/1.07, allocations: 9.75 kB / 0.5894 GB, free: 14.64 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006492/1.071, allocations: 330 kB / 0.5897 GB, free: 14.29 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000313/1.071, allocations: 0.7465 MB / 0.5904 GB, free: 13.52 MB / 410.7 MB Notification: Performance of SimCode: time 2.6e-07/1.071, allocations: 3.938 kB / 0.5904 GB, free: 13.52 MB / 410.7 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain.fmu > ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.mat does not exist to compare? outputFormat=mat