Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Inverter",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 3.2.3+maint.om/package.mo): time 0.001083/0.001083, allocations: 183.8 kB / 8.478 MB, free: 0.5352 MB / 6.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.144/1.144, allocations: 205.2 MB / 214.1 MB, free: 8.586 MB / 178.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009497/0.0009495, allocations: 90.5 kB / 262.1 MB, free: 5.141 MB / 210.8 MB Notification: Performance of FrontEnd - loaded program: time 0.08885/0.08983, allocations: 53 MB / 315.1 MB, free: 1.973 MB / 258.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07374/0.1636, allocations: 47.57 MB / 362.6 MB, free: 2.289 MB / 306.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2206/0.3842, allocations: 107.3 MB / 469.9 MB, free: 12.97 MB / 354.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002013/0.3845, allocations: 83.95 kB / 470 MB, free: 12.93 MB / 354.8 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 822 * Number of variables: 822 Notification: Performance of Generate backend data structure: time 0.3132/0.6977, allocations: 81.48 MB / 0.5386 GB, free: 80.4 MB / 402.8 MB Notification: Performance of prepare preOptimizeDAE: time 3.304e-05/0.6977, allocations: 10.47 kB / 0.5386 GB, free: 80.4 MB / 402.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003715/0.7014, allocations: 0.7348 MB / 0.5393 GB, free: 80.21 MB / 402.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006065/0.7075, allocations: 3.287 MB / 0.5425 GB, free: 79.69 MB / 402.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.947e-05/0.7076, allocations: 100.7 kB / 0.5426 GB, free: 79.69 MB / 402.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003762/0.708, allocations: 187.4 kB / 0.5428 GB, free: 79.69 MB / 402.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004547/0.7125, allocations: 3.157 MB / 0.5459 GB, free: 79.67 MB / 402.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005166/0.7177, allocations: 3.643 MB / 0.5494 GB, free: 79.31 MB / 402.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.239e-05/0.7178, allocations: 3.625 kB / 0.5494 GB, free: 79.31 MB / 402.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000265/0.7181, allocations: 3.906 kB / 0.5494 GB, free: 79.31 MB / 402.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001068/0.7182, allocations: 155.9 kB / 0.5496 GB, free: 79.3 MB / 402.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01659/0.7348, allocations: 12.71 MB / 0.562 GB, free: 74.75 MB / 402.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001282/0.7361, allocations: 1.047 MB / 0.563 GB, free: 74.31 MB / 402.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001749/0.7379, allocations: 1.335 MB / 0.5643 GB, free: 73.82 MB / 402.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005561/0.7434, allocations: 3.988 MB / 0.5682 GB, free: 71.62 MB / 402.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.857e-05/0.7435, allocations: 47.72 kB / 0.5683 GB, free: 71.57 MB / 402.8 MB Notification: Performance of pre-optimization done (n=148): time 2.845e-06/0.7435, allocations: 0 / 0.5683 GB, free: 71.57 MB / 402.8 MB Notification: Performance of matching and sorting (n=151): time 0.006861/0.7504, allocations: 4.337 MB / 0.5725 GB, free: 69.36 MB / 402.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.027e-05/0.7504, allocations: 64.25 kB / 0.5726 GB, free: 69.3 MB / 402.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001489/0.7519, allocations: 1.217 MB / 0.5738 GB, free: 68.78 MB / 402.8 MB Notification: Performance of collectPreVariables (initialization): time 8.353e-05/0.752, allocations: 29.58 kB / 0.5738 GB, free: 68.75 MB / 402.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003754/0.7524, allocations: 1.15 MB / 0.5749 GB, free: 67.91 MB / 402.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002547/0.7526, allocations: 0.4929 MB / 0.5754 GB, free: 67.52 MB / 402.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.006e-05/0.7527, allocations: 0 / 0.5754 GB, free: 67.52 MB / 402.8 MB Notification: Performance of setup shared object (initialization): time 9e-05/0.7528, allocations: 381.2 kB / 0.5757 GB, free: 67.18 MB / 402.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009035/0.7537, allocations: 0.7002 MB / 0.5764 GB, free: 66.89 MB / 402.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001174/0.7549, allocations: 1.171 MB / 0.5776 GB, free: 66 MB / 402.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001675/0.7566, allocations: 0.975 MB / 0.5785 GB, free: 65.61 MB / 402.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.334e-05/0.7566, allocations: 9.156 kB / 0.5785 GB, free: 65.6 MB / 402.8 MB Notification: Performance of matching and sorting (n=229) (initialization): time 0.003981/0.7606, allocations: 2.393 MB / 0.5809 GB, free: 64.65 MB / 402.8 MB Notification: Performance of prepare postOptimizeDAE: time 1.358e-05/0.7606, allocations: 6.062 kB / 0.5809 GB, free: 64.65 MB / 402.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.439e-05/0.7607, allocations: 18.53 kB / 0.5809 GB, free: 64.65 MB / 402.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006748/0.7613, allocations: 273 kB / 0.5812 GB, free: 64.54 MB / 402.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00172/0.7631, allocations: 408 kB / 0.5815 GB, free: 64.53 MB / 402.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004061/0.7671, allocations: 5.365 MB / 0.5868 GB, free: 59.98 MB / 402.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001154/0.7683, allocations: 45.41 kB / 0.5868 GB, free: 59.98 MB / 402.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001507/0.7685, allocations: 82.69 kB / 0.5869 GB, free: 59.96 MB / 402.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 66 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (209): * Single equations (assignments): 205 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 1,(1,100.0%) 5,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002494/0.7687, allocations: 161.1 kB / 0.5871 GB, free: 59.82 MB / 402.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002381/0.769, allocations: 172.4 kB / 0.5872 GB, free: 59.73 MB / 402.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003773/0.7728, allocations: 2.277 MB / 0.5894 GB, free: 58.68 MB / 402.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.291e-05/0.7728, allocations: 15.09 kB / 0.5895 GB, free: 58.68 MB / 402.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.496e-05/0.7728, allocations: 10.25 kB / 0.5895 GB, free: 58.68 MB / 402.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.445e-05/0.7728, allocations: 10.12 kB / 0.5895 GB, free: 58.68 MB / 402.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007334/0.7802, allocations: 5.007 MB / 0.5944 GB, free: 56.19 MB / 402.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.731e-06/0.7802, allocations: 2.5 kB / 0.5944 GB, free: 56.19 MB / 402.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00104/0.7812, allocations: 219.3 kB / 0.5946 GB, free: 56.17 MB / 402.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001195/0.7824, allocations: 437.2 kB / 0.595 GB, free: 56.02 MB / 402.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000106/0.7826, allocations: 21.41 kB / 0.595 GB, free: 56.01 MB / 402.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007575/0.7901, allocations: 9.475 MB / 0.6043 GB, free: 48.07 MB / 402.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.368e-06/0.7902, allocations: 2.438 kB / 0.6043 GB, free: 48.07 MB / 402.8 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004645/0.7948, allocations: 3.38 MB / 0.6076 GB, free: 46.31 MB / 402.8 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.005374/0.8002, allocations: 4.758 MB / 0.6122 GB, free: 43.72 MB / 402.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007225/0.8009, allocations: 430.2 kB / 0.6126 GB, free: 43.43 MB / 402.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003217/0.8013, allocations: 13.84 kB / 0.6126 GB, free: 43.42 MB / 402.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001002/0.8023, allocations: 53.8 kB / 0.6127 GB, free: 43.42 MB / 402.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001594/0.8025, allocations: 84.52 kB / 0.6128 GB, free: 43.4 MB / 402.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.125e-05/0.8026, allocations: 46.17 kB / 0.6128 GB, free: 43.39 MB / 402.8 MB Notification: Performance of sort global known variables: time 0.001128/0.8037, allocations: 0.9145 MB / 0.6137 GB, free: 42.99 MB / 402.8 MB Notification: Performance of remove unused functions: time 0.00252/0.8062, allocations: 0.5454 MB / 0.6142 GB, free: 42.95 MB / 402.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 7 (aimc.inertiaRotor.phi,aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,vfController.x,loadInertia.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (115): * Single equations (assignments): 110 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 13,(1,100.0%) 8,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004102/0.8066, allocations: 323.8 kB / 0.6146 GB, free: 42.8 MB / 402.8 MB Notification: Performance of simCode: created initialization part: time 0.002611/0.8093, allocations: 2.144 MB / 0.6167 GB, free: 41.42 MB / 402.8 MB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/0.8093, allocations: 0 / 0.6167 GB, free: 41.42 MB / 402.8 MB Notification: Performance of simCode: created simulation system equations: time 0.001852/0.8111, allocations: 1.469 MB / 0.6181 GB, free: 40 MB / 402.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001514/0.8127, allocations: 341.5 kB / 0.6184 GB, free: 39.73 MB / 402.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007298/0.82, allocations: 4.551 MB / 0.6229 GB, free: 35.63 MB / 402.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001982/0.822, allocations: 2.482 MB / 0.6253 GB, free: 33.64 MB / 402.8 MB Notification: Performance of SimCode: time 4.71e-07/0.822, allocations: 0 / 0.6253 GB, free: 33.64 MB / 402.8 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Inverter_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Inverter.fmu > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter_res.mat does not exist to compare? outputFormat=mat