Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase.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) 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(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_ComparisonPolyphase_SMR_Inverter_Polyphase",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_ComparisonPolyphase_SMR_Inverter_Polyphase",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.00105/0.00105, allocations: 183.8 kB / 8.138 MB, free: 2.223 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.183/1.183, allocations: 221.4 MB / 229.9 MB, free: 3.059 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.0009215/0.0009217, allocations: 95.94 kB / 280.8 MB, free: 1.223 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08974/0.09069, allocations: 55.84 MB / 336.6 MB, free: 9.367 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1813/0.272, allocations: 50.4 MB / 387 MB, free: 38.01 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1174/0.3894, allocations: 114.9 MB / 0.4902 GB, free: 3.785 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002497/0.3897, allocations: 109.5 kB / 0.4903 GB, free: 3.68 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: 1854 * Number of variables: 1854 Notification: Performance of Generate backend data structure: time 0.4995/0.8892, allocations: 164.4 MB / 0.6508 GB, free: 10.56 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.777e-05/0.8892, allocations: 11.94 kB / 0.6508 GB, free: 10.55 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00947/0.8987, allocations: 1.533 MB / 0.6523 GB, free: 9.008 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01366/0.9124, allocations: 5.751 MB / 0.6579 GB, free: 3.258 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002529/0.9127, allocations: 228 kB / 0.6582 GB, free: 3.035 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00121/0.9139, allocations: 419.8 kB / 0.6586 GB, free: 2.625 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.1336/1.048, allocations: 7.02 MB / 0.6654 GB, free: 79.04 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01286/1.06, allocations: 8.105 MB / 0.6733 GB, free: 78.34 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001495/1.061, allocations: 4.125 kB / 0.6733 GB, free: 78.34 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005851/1.061, allocations: 6.5 kB / 0.6733 GB, free: 78.34 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002029/1.061, allocations: 329.5 kB / 0.6737 GB, free: 78.33 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04007/1.101, allocations: 27.68 MB / 0.7007 GB, free: 73.77 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00283/1.104, allocations: 2.147 MB / 0.7028 GB, free: 73.75 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003958/1.108, allocations: 3.05 MB / 0.7058 GB, free: 73.71 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01234/1.121, allocations: 8.362 MB / 0.7139 GB, free: 72.7 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.036e-05/1.121, allocations: 76.64 kB / 0.714 GB, free: 72.65 MB / 442.7 MB Notification: Performance of pre-optimization done (n=328): time 5.26e-06/1.121, allocations: 0 / 0.714 GB, free: 72.65 MB / 442.7 MB Notification: Performance of matching and sorting (n=334): time 0.01464/1.135, allocations: 8.998 MB / 0.7228 GB, free: 70.98 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.849e-05/1.135, allocations: 85.59 kB / 0.7229 GB, free: 70.91 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003127/1.139, allocations: 2.372 MB / 0.7252 GB, free: 70.68 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002055/1.139, allocations: 25.7 kB / 0.7252 GB, free: 70.65 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008702/1.14, allocations: 2.46 MB / 0.7276 GB, free: 69.34 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006484/1.14, allocations: 1.094 MB / 0.7287 GB, free: 68.61 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000181/1.141, allocations: 0 / 0.7287 GB, free: 68.61 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001778/1.141, allocations: 464.2 kB / 0.7291 GB, free: 68.3 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002061/1.143, allocations: 1.556 MB / 0.7306 GB, free: 68.29 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002381/1.145, allocations: 2.585 MB / 0.7332 GB, free: 67.12 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003262/1.148, allocations: 2.142 MB / 0.7353 GB, free: 67.07 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.685e-05/1.148, allocations: 11.06 kB / 0.7353 GB, free: 67.07 MB / 442.7 MB Notification: Performance of matching and sorting (n=503) (initialization): time 0.007493/1.156, allocations: 4.957 MB / 0.7401 GB, free: 65.83 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.531e-05/1.156, allocations: 6 kB / 0.7401 GB, free: 65.83 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.381e-05/1.156, allocations: 32.06 kB / 0.7402 GB, free: 65.83 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008895/1.157, allocations: 384.2 kB / 0.7405 GB, free: 65.7 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003512/1.16, allocations: 0.9117 MB / 0.7414 GB, free: 65.67 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004814/1.165, allocations: 6.967 MB / 0.7482 GB, free: 59.77 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002704/1.168, allocations: 94.12 kB / 0.7483 GB, free: 59.77 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002897/1.168, allocations: 162 kB / 0.7485 GB, free: 59.73 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 144 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (478): * Single equations (assignments): 472 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 1,(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 16} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005099/1.169, allocations: 213.1 kB / 0.7487 GB, free: 59.6 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004771/1.169, allocations: 354.1 kB / 0.749 GB, free: 59.41 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007492/1.177, allocations: 4.651 MB / 0.7535 GB, free: 57.5 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.29e-05/1.177, allocations: 33.25 kB / 0.7536 GB, free: 57.5 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.505e-05/1.177, allocations: 18.09 kB / 0.7536 GB, free: 57.5 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.758e-05/1.177, allocations: 16.03 kB / 0.7536 GB, free: 57.5 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01487/1.192, allocations: 10.44 MB / 0.7638 GB, free: 52.71 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.055e-05/1.192, allocations: 3.422 kB / 0.7638 GB, free: 52.71 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002388/1.194, allocations: 0.507 MB / 0.7643 GB, free: 52.7 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002096/1.196, allocations: 0.8483 MB / 0.7651 GB, free: 52.43 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002349/1.197, allocations: 38.47 kB / 0.7652 GB, free: 52.42 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01324/1.21, allocations: 15.08 MB / 0.7799 GB, free: 40.63 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.212e-06/1.21, allocations: 3.656 kB / 0.7799 GB, free: 40.63 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01003/1.22, allocations: 7.048 MB / 0.7868 GB, free: 37.21 MB / 442.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01137/1.231, allocations: 9.73 MB / 0.7963 GB, free: 32.37 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001644/1.233, allocations: 0.7764 MB / 0.797 GB, free: 31.87 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005743/1.234, allocations: 23.47 kB / 0.7971 GB, free: 31.86 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001924/1.235, allocations: 111.2 kB / 0.7972 GB, free: 31.85 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003125/1.236, allocations: 168.8 kB / 0.7973 GB, free: 31.82 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002002/1.236, allocations: 106.4 kB / 0.7974 GB, free: 31.8 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.002273/1.238, allocations: 1.753 MB / 0.7991 GB, free: 31.07 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.00408/1.242, allocations: 1.13 MB / 0.8002 GB, free: 31.01 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 14 (smrM.inertiaRotor.w,smrM.stator.core.Phi.re,smrM.stator.core.Phi.im,smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smr3.inertiaRotor.w,smr3.stator.core.Phi.re,smr3.stator.core.Phi.im,smr3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smr3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,loadInertiaM.phi,loadInertia3.phi,vfController3.x,vfControllerM.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (265): * Single equations (assignments): 258 * 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: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(1,100.0%) 5,(4,93.8%) 33,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 12,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000662/1.243, allocations: 471.4 kB / 0.8007 GB, free: 30.88 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.005196/1.248, allocations: 4.435 MB / 0.805 GB, free: 27.4 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.917e-06/1.248, allocations: 7 kB / 0.805 GB, free: 27.39 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003382/1.252, allocations: 2.814 MB / 0.8078 GB, free: 24.78 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002665/1.254, allocations: 0.6385 MB / 0.8084 GB, free: 24.29 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01687/1.271, allocations: 10.18 MB / 0.8183 GB, free: 15.21 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004374/1.276, allocations: 4.663 MB / 0.8229 GB, free: 11.65 MB / 442.7 MB Notification: Performance of SimCode: time 4.11e-07/1.276, allocations: 0 / 0.8229 GB, free: 11.65 MB / 442.7 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_ComparisonPolyphase_SMR_Inverter_Polyphase_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_ComparisonPolyphase_SMR_Inverter_Polyphase.fmu > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase_res.mat does not exist to compare? outputFormat=mat