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.SMPM_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.SMPM_Inverter_Polyphase,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_ComparisonPolyphase_SMPM_Inverter_Polyphase",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_ComparisonPolyphase_SMPM_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.001871/0.001871, allocations: 183.2 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.202/1.202, allocations: 221.4 MB / 229.9 MB, free: 3.082 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.0009474/0.0009475, allocations: 96.67 kB / 280.8 MB, free: 1.258 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08972/0.0907, allocations: 55.85 MB / 336.6 MB, free: 9.398 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1714/0.2621, allocations: 50.39 MB / 387 MB, free: 38 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2381/0.5002, allocations: 118.8 MB / 0.494 GB, free: 103.2 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00026/0.5005, allocations: 106.3 kB / 0.4941 GB, free: 103.2 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: 1932 * Number of variables: 1932 Notification: Performance of Generate backend data structure: time 0.5196/1.02, allocations: 174.4 MB / 0.6644 GB, free: 32.53 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.472e-05/1.02, allocations: 10.97 kB / 0.6644 GB, free: 32.53 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008518/1.029, allocations: 1.618 MB / 0.666 GB, free: 32.11 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01189/1.041, allocations: 5.963 MB / 0.6718 GB, free: 31.26 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002023/1.041, allocations: 238.9 kB / 0.672 GB, free: 31.26 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001149/1.042, allocations: 437.6 kB / 0.6725 GB, free: 31.25 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01136/1.053, allocations: 7.229 MB / 0.6795 GB, free: 31.22 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0129/1.066, allocations: 8.393 MB / 0.6877 GB, free: 30.47 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001603/1.066, allocations: 13.7 kB / 0.6877 GB, free: 30.47 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006109/1.067, allocations: 3.562 kB / 0.6877 GB, free: 30.47 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002199/1.067, allocations: 348.7 kB / 0.6881 GB, free: 30.45 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03911/1.106, allocations: 29.41 MB / 0.7168 GB, free: 24.55 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002726/1.109, allocations: 2.321 MB / 0.719 GB, free: 24.53 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003961/1.113, allocations: 3.216 MB / 0.7222 GB, free: 24.48 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01269/1.126, allocations: 8.816 MB / 0.7308 GB, free: 22.06 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.057e-05/1.126, allocations: 79.72 kB / 0.7309 GB, free: 21.99 MB / 426.7 MB Notification: Performance of pre-optimization done (n=354): time 4.849e-06/1.126, allocations: 0 / 0.7309 GB, free: 21.99 MB / 426.7 MB Notification: Performance of matching and sorting (n=362): time 0.01594/1.142, allocations: 9.541 MB / 0.7402 GB, free: 17.47 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.244e-05/1.142, allocations: 93.56 kB / 0.7403 GB, free: 17.4 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003455/1.145, allocations: 2.544 MB / 0.7428 GB, free: 16.38 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001965/1.146, allocations: 25.7 kB / 0.7428 GB, free: 16.34 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008519/1.146, allocations: 2.564 MB / 0.7453 GB, free: 14.5 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007425/1.147, allocations: 1.183 MB / 0.7465 GB, free: 13.56 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002018/1.147, allocations: 0 / 0.7465 GB, free: 13.56 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001742/1.148, allocations: 477.4 kB / 0.7469 GB, free: 13.18 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002161/1.15, allocations: 1.647 MB / 0.7485 GB, free: 12.48 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002477/1.152, allocations: 2.77 MB / 0.7512 GB, free: 10.36 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003476/1.156, allocations: 2.276 MB / 0.7534 GB, free: 9.43 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.574e-05/1.156, allocations: 10.38 kB / 0.7535 GB, free: 9.43 MB / 426.7 MB Notification: Performance of matching and sorting (n=545) (initialization): time 0.007921/1.164, allocations: 5.263 MB / 0.7586 GB, free: 7.469 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.469e-05/1.164, allocations: 3.969 kB / 0.7586 GB, free: 7.469 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.828e-05/1.164, allocations: 37.69 kB / 0.7586 GB, free: 7.469 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009196/1.165, allocations: 397.2 kB / 0.759 GB, free: 7.332 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003861/1.169, allocations: 0.9833 MB / 0.76 GB, free: 7.289 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004795/1.173, allocations: 6.991 MB / 0.7668 GB, free: 1.367 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002922/1.176, allocations: 99.11 kB / 0.7669 GB, free: 1.355 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003631/1.177, allocations: 180 kB / 0.7671 GB, free: 1.324 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 158 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (520): * Single equations (assignments): 514 * 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.0005609/1.177, allocations: 221.6 kB / 0.7673 GB, free: 1.18 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006073/1.178, allocations: 380.2 kB / 0.7676 GB, free: 0.9844 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008737/1.187, allocations: 4.921 MB / 0.7724 GB, free: 14.93 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.126e-05/1.187, allocations: 37.81 kB / 0.7725 GB, free: 14.92 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.93e-05/1.187, allocations: 12.09 kB / 0.7725 GB, free: 14.92 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.199e-05/1.187, allocations: 23.02 kB / 0.7725 GB, free: 14.92 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01807/1.205, allocations: 11.1 MB / 0.7833 GB, free: 5.988 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.348e-05/1.205, allocations: 4 kB / 0.7834 GB, free: 5.984 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002757/1.208, allocations: 0.5414 MB / 0.7839 GB, free: 5.547 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002355/1.21, allocations: 0.8846 MB / 0.7847 GB, free: 4.797 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000232/1.21, allocations: 42.66 kB / 0.7848 GB, free: 4.762 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.016/1.226, allocations: 15.33 MB / 0.7998 GB, free: 5.676 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.873e-06/1.226, allocations: 4 kB / 0.7998 GB, free: 5.672 MB / 458.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01693/1.243, allocations: 8.103 MB / 0.8077 GB, free: 15.84 MB / 474.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01454/1.258, allocations: 10.44 MB / 0.8179 GB, free: 6.031 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001932/1.26, allocations: 0.839 MB / 0.8187 GB, free: 5.258 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006528/1.26, allocations: 20 kB / 0.8187 GB, free: 5.238 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002072/1.262, allocations: 104.1 kB / 0.8188 GB, free: 5.16 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003733/1.263, allocations: 201.3 kB / 0.819 GB, free: 5.043 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002403/1.263, allocations: 103.6 kB / 0.8191 GB, free: 4.949 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.002855/1.266, allocations: 1.872 MB / 0.8209 GB, free: 3.266 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.004485/1.27, allocations: 1.203 MB / 0.8221 GB, free: 2.066 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 14 (vfController3.x,smpmM.inertiaRotor.w,smpmM.stator.core.Phi.re,smpmM.stator.core.Phi.im,smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smpm3.inertiaRotor.w,smpm3.stator.core.Phi.re,smpm3.stator.core.Phi.im,smpm3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpm3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,loadInertiaM.phi,loadInertia3.phi,vfController.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (289): * Single equations (assignments): 282 * 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%) 14,(2,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007616/1.271, allocations: 0.5237 MB / 0.8226 GB, free: 1.664 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.1387/1.41, allocations: 5.213 MB / 0.8277 GB, free: 103.9 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 5.971e-06/1.41, allocations: 3.219 kB / 0.8277 GB, free: 103.9 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003942/1.414, allocations: 2.986 MB / 0.8306 GB, free: 103.2 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003604/1.418, allocations: 0.7285 MB / 0.8313 GB, free: 103.1 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01786/1.435, allocations: 10.54 MB / 0.8416 GB, free: 101 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004775/1.44, allocations: 4.767 MB / 0.8463 GB, free: 100.2 MB / 474.7 MB Notification: Performance of SimCode: time 6.31e-07/1.44, allocations: 2.734 kB / 0.8463 GB, free: 100.2 MB / 474.7 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_ComparisonPolyphase_SMPM_Inverter_Polyphase_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_ComparisonPolyphase_SMPM_Inverter_Polyphase.fmu > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_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.SMPM_Inverter_Polyphase_res.mat does not exist to compare? outputFormat=mat