Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.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) 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(Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DC_CompareCharacteristics",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DC_CompareCharacteristics",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.001009/0.001009, allocations: 195.1 kB / 8.537 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.123/1.123, allocations: 225.5 MB / 234.4 MB, free: 14.87 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008742/0.0008742, allocations: 94.22 kB / 286.3 MB, free: 12.56 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09396/0.09486, allocations: 56.89 MB / 343.2 MB, free: 3.652 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1642/0.2591, allocations: 51.46 MB / 394.7 MB, free: 33.17 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1084/0.3676, allocations: 111.8 MB / 0.4946 GB, free: 1.223 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002151/0.3678, allocations: 84.97 kB / 0.4947 GB, free: 1.141 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 666 * Number of variables: 666 Notification: Performance of Generate backend data structure: time 0.2665/0.6344, allocations: 72.52 MB / 0.5655 GB, free: 42.44 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.093e-05/0.6344, allocations: 8 kB / 0.5655 GB, free: 42.43 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001719/0.6361, allocations: 0.4918 MB / 0.566 GB, free: 41.94 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003325/0.6395, allocations: 1.884 MB / 0.5678 GB, free: 40 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.741e-05/0.6395, allocations: 91.91 kB / 0.5679 GB, free: 39.91 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002907/0.6398, allocations: 159.9 kB / 0.568 GB, free: 39.75 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002448/0.6423, allocations: 1.389 MB / 0.5694 GB, free: 38.36 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002868/0.6452, allocations: 1.992 MB / 0.5713 GB, free: 36.25 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.743e-05/0.6453, allocations: 15.83 kB / 0.5714 GB, free: 36.23 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001452/0.6454, allocations: 8 kB / 0.5714 GB, free: 36.22 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.669e-05/0.6454, allocations: 64 kB / 0.5714 GB, free: 36.16 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00941/0.6549, allocations: 10.27 MB / 0.5815 GB, free: 25.34 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004444/0.6553, allocations: 364.2 kB / 0.5818 GB, free: 24.98 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004326/0.6558, allocations: 340.1 kB / 0.5821 GB, free: 24.64 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.559e-05/0.6558, allocations: 12.77 kB / 0.5821 GB, free: 24.63 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.999e-05/0.6559, allocations: 43.34 kB / 0.5822 GB, free: 24.58 MB / 378.7 MB Notification: Performance of pre-optimization done (n=83): time 3.106e-06/0.6559, allocations: 3.984 kB / 0.5822 GB, free: 24.58 MB / 378.7 MB Notification: Performance of matching and sorting (n=92): time 0.002746/0.6586, allocations: 2.052 MB / 0.5842 GB, free: 22.47 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.954e-05/0.6587, allocations: 171 kB / 0.5844 GB, free: 22.26 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001574/0.6602, allocations: 1.454 MB / 0.5858 GB, free: 20.78 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.851e-05/0.6603, allocations: 25.7 kB / 0.5858 GB, free: 20.75 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003855/0.6607, allocations: 1.194 MB / 0.587 GB, free: 19.53 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001505/0.6608, allocations: 323.3 kB / 0.5873 GB, free: 19.21 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.194e-05/0.6609, allocations: 0 / 0.5873 GB, free: 19.21 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.902e-05/0.661, allocations: 381.8 kB / 0.5876 GB, free: 18.83 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004233/0.6614, allocations: 296 kB / 0.5879 GB, free: 18.54 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006706/0.6621, allocations: 1.158 MB / 0.5891 GB, free: 16.96 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006191/0.6627, allocations: 0.5078 MB / 0.5895 GB, free: 16.45 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.756e-06/0.6627, allocations: 8 kB / 0.5896 GB, free: 16.45 MB / 378.7 MB Notification: Performance of matching and sorting (n=236) (initialization): time 0.002094/0.6648, allocations: 1.532 MB / 0.5911 GB, free: 14.89 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001583/0.6664, allocations: 12.23 MB / 0.603 GB, free: 1.629 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.382e-05/0.6665, allocations: 32 kB / 0.603 GB, free: 1.598 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004992/0.667, allocations: 175.3 kB / 0.6032 GB, free: 1.414 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001139/0.6681, allocations: 427.2 kB / 0.6036 GB, free: 0.9961 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003747/0.6719, allocations: 5.341 MB / 0.6088 GB, free: 11.19 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0014/0.6733, allocations: 63.94 kB / 0.6089 GB, free: 11.13 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001104/0.6734, allocations: 99.94 kB / 0.609 GB, free: 11.03 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.931e-06/0.6734, allocations: 4 kB / 0.609 GB, free: 11.03 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002019/0.6754, allocations: 1.274 MB / 0.6102 GB, free: 9.742 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.477e-05/0.6755, allocations: 28 kB / 0.6102 GB, free: 9.715 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000435/0.6759, allocations: 176.2 kB / 0.6104 GB, free: 9.531 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001185/0.6771, allocations: 415.3 kB / 0.6108 GB, free: 9.125 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003697/0.6808, allocations: 5.34 MB / 0.616 GB, free: 3.324 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001233/0.6821, allocations: 51.95 kB / 0.6161 GB, free: 3.273 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001156/0.6822, allocations: 99.91 kB / 0.6162 GB, free: 3.176 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 136 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (225): * Single equations (assignments): 221 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 1,(1,100.0%) 8,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002342/0.6824, allocations: 184.1 kB / 0.6163 GB, free: 2.988 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002411/0.6827, allocations: 205.5 kB / 0.6165 GB, free: 2.785 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001431/0.6841, allocations: 0.7764 MB / 0.6173 GB, free: 1.988 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.786e-06/0.6841, allocations: 12 kB / 0.6173 GB, free: 1.977 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.454e-06/0.6842, allocations: 7.984 kB / 0.6173 GB, free: 1.969 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.425e-06/0.6842, allocations: 3.984 kB / 0.6173 GB, free: 1.965 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003892/0.6881, allocations: 2.659 MB / 0.6199 GB, free: 15.16 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.833e-06/0.6881, allocations: 4 kB / 0.6199 GB, free: 15.16 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006454/0.6887, allocations: 172.4 kB / 0.6201 GB, free: 14.99 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003947/0.6891, allocations: 127.4 kB / 0.6202 GB, free: 14.85 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.645e-05/0.6892, allocations: 8 kB / 0.6202 GB, free: 14.84 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003466/0.6927, allocations: 5.126 MB / 0.6252 GB, free: 9.258 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.606e-06/0.6927, allocations: 15.92 kB / 0.6252 GB, free: 9.242 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001926/0.6946, allocations: 1.752 MB / 0.6269 GB, free: 7.191 MB / 410.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002396/0.697, allocations: 2.445 MB / 0.6293 GB, free: 4.438 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005889/0.6976, allocations: 342.4 kB / 0.6297 GB, free: 4.082 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000264/0.6979, allocations: 15.98 kB / 0.6297 GB, free: 4.066 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009046/0.6988, allocations: 43.97 kB / 0.6297 GB, free: 4.023 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.467e-05/0.6989, allocations: 68.42 kB / 0.6298 GB, free: 3.957 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.57e-05/0.699, allocations: 28 kB / 0.6298 GB, free: 3.93 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.001487/0.7005, allocations: 1.048 MB / 0.6308 GB, free: 2.863 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.004374/0.7049, allocations: 0.9101 MB / 0.6317 GB, free: 1.953 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * Number of states: 6 (dcpm.inertiaRotor.phi,dcpm.inertiaRotor.w,dcee.inertiaRotor.phi,dcee.inertiaRotor.w,dcse.inertiaRotor.phi,dcse.inertiaRotor.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (83): * Single equations (assignments): 79 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005772/0.7055, allocations: 499.8 kB / 0.6322 GB, free: 1.457 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003224/0.7087, allocations: 2.447 MB / 0.6346 GB, free: 14.95 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.369e-06/0.7087, allocations: 0 / 0.6346 GB, free: 14.95 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008785/0.7096, allocations: 0.7302 MB / 0.6353 GB, free: 14.17 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002056/0.7117, allocations: 477 kB / 0.6358 GB, free: 13.71 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00564/0.7173, allocations: 3.182 MB / 0.6389 GB, free: 10.39 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00147/0.7188, allocations: 1.768 MB / 0.6406 GB, free: 8.594 MB / 426.7 MB Notification: Performance of SimCode: time 4.31e-07/0.7188, allocations: 0 / 0.6406 GB, free: 8.594 MB / 426.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DC_CompareCharacteristics_fmu --startTime=0 --stopTime=6 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DC_CompareCharacteristics.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics_res.mat does not exist to compare? outputFormat=mat