Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase.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.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase,fileNamePrefix="Modelica_trunk_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_trunk_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 trunk/package.mo): time 0.001031/0.00103, allocations: 195.8 kB / 8.536 MB, free: 1.816 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.139/1.139, allocations: 225.5 MB / 234.4 MB, free: 3.445 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008811/0.0008812, allocations: 94.64 kB / 286.3 MB, free: 5.238 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08969/0.0906, allocations: 56.93 MB / 343.3 MB, free: 8.664 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07979/0.1704, allocations: 51.47 MB / 394.7 MB, free: 5.137 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2345/0.405, allocations: 116 MB / 0.4988 GB, free: 9.695 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002496/0.4053, allocations: 100.6 kB / 0.4989 GB, free: 9.641 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.4971/0.9024, allocations: 170 MB / 0.6649 GB, free: 45.67 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.557e-05/0.9025, allocations: 13.16 kB / 0.6649 GB, free: 45.67 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00797/0.9104, allocations: 1.537 MB / 0.6664 GB, free: 45.14 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01178/0.9222, allocations: 5.813 MB / 0.6721 GB, free: 42.19 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001835/0.9224, allocations: 229 kB / 0.6723 GB, free: 42.18 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009922/0.9234, allocations: 418.5 kB / 0.6727 GB, free: 42.17 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01171/0.9351, allocations: 7.025 MB / 0.6796 GB, free: 39.12 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01231/0.9475, allocations: 8.103 MB / 0.6875 GB, free: 35.57 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001443/0.9476, allocations: 3.125 kB / 0.6875 GB, free: 35.57 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005717/0.9482, allocations: 13.94 kB / 0.6875 GB, free: 35.56 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002095/0.9484, allocations: 333.8 kB / 0.6878 GB, free: 35.52 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03592/0.9844, allocations: 27.84 MB / 0.715 GB, free: 12.02 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002309/0.9867, allocations: 2.149 MB / 0.7171 GB, free: 9.871 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00394/0.9907, allocations: 3.212 MB / 0.7202 GB, free: 6.66 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01203/1.003, allocations: 8.792 MB / 0.7288 GB, free: 13.71 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.074e-05/1.003, allocations: 69.08 kB / 0.7289 GB, free: 13.64 MB / 458.7 MB Notification: Performance of pre-optimization done (n=328): time 6.592e-06/1.003, allocations: 3.984 kB / 0.7289 GB, free: 13.63 MB / 458.7 MB Notification: Performance of matching and sorting (n=334): time 0.01639/1.019, allocations: 8.997 MB / 0.7377 GB, free: 4.496 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.395e-05/1.019, allocations: 86.03 kB / 0.7378 GB, free: 4.398 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003451/1.023, allocations: 2.388 MB / 0.7401 GB, free: 2.008 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001788/1.023, allocations: 29.7 kB / 0.7401 GB, free: 1.973 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.1298/1.153, allocations: 2.457 MB / 0.7425 GB, free: 106.5 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009583/1.154, allocations: 1.097 MB / 0.7436 GB, free: 106.5 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002009/1.154, allocations: 3.656 kB / 0.7436 GB, free: 106.5 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001537/1.154, allocations: 465.7 kB / 0.744 GB, free: 106.2 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002003/1.156, allocations: 1.552 MB / 0.7455 GB, free: 106.2 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002228/1.158, allocations: 2.575 MB / 0.7481 GB, free: 105 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003037/1.161, allocations: 2.138 MB / 0.7502 GB, free: 105 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.467e-05/1.161, allocations: 9.375 kB / 0.7502 GB, free: 105 MB / 458.7 MB Notification: Performance of matching and sorting (n=503) (initialization): time 0.007205/1.169, allocations: 4.955 MB / 0.755 GB, free: 104.6 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.327e-05/1.169, allocations: 7.875 kB / 0.755 GB, free: 104.6 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.734e-05/1.169, allocations: 29.41 kB / 0.755 GB, free: 104.6 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008665/1.17, allocations: 402.1 kB / 0.7554 GB, free: 104.5 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003373/1.173, allocations: 0.8991 MB / 0.7563 GB, free: 104.5 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004733/1.178, allocations: 6.962 MB / 0.7631 GB, free: 99.59 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002638/1.18, allocations: 95.25 kB / 0.7632 GB, free: 99.58 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002824/1.181, allocations: 166.7 kB / 0.7633 GB, free: 99.58 MB / 458.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.0004879/1.181, allocations: 211.2 kB / 0.7635 GB, free: 99.47 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004378/1.182, allocations: 361.3 kB / 0.7639 GB, free: 99.29 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007277/1.189, allocations: 4.651 MB / 0.7684 GB, free: 98.84 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.152e-05/1.189, allocations: 34.89 kB / 0.7685 GB, free: 98.84 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.402e-05/1.189, allocations: 10.69 kB / 0.7685 GB, free: 98.84 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.737e-05/1.189, allocations: 22.44 kB / 0.7685 GB, free: 98.84 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01403/1.203, allocations: 10.44 MB / 0.7787 GB, free: 97.54 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-05/1.203, allocations: 7.875 kB / 0.7787 GB, free: 97.54 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002272/1.205, allocations: 0.5005 MB / 0.7792 GB, free: 97.54 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001952/1.207, allocations: 0.8536 MB / 0.78 GB, free: 97.48 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002163/1.207, allocations: 37.45 kB / 0.7801 GB, free: 97.48 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01211/1.22, allocations: 15.05 MB / 0.7948 GB, free: 88.63 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.19e-06/1.22, allocations: 7.688 kB / 0.7948 GB, free: 88.63 MB / 458.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.008865/1.228, allocations: 7.049 MB / 0.8016 GB, free: 87.41 MB / 458.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01086/1.239, allocations: 9.733 MB / 0.8112 GB, free: 83.62 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001562/1.241, allocations: 0.7837 MB / 0.8119 GB, free: 83.11 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006332/1.242, allocations: 19.53 kB / 0.8119 GB, free: 83.1 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001805/1.243, allocations: 104.8 kB / 0.812 GB, free: 83.1 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000301/1.244, allocations: 180.5 kB / 0.8122 GB, free: 83.07 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002106/1.244, allocations: 92.89 kB / 0.8123 GB, free: 83.05 MB / 458.7 MB Notification: Performance of sort global known variables: time 0.002278/1.246, allocations: 1.771 MB / 0.814 GB, free: 82.31 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.004012/1.25, allocations: 1.158 MB / 0.8152 GB, free: 82.25 MB / 458.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.0006467/1.251, allocations: 484.1 kB / 0.8156 GB, free: 82.13 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.004941/1.256, allocations: 4.426 MB / 0.8199 GB, free: 80.16 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 3.085e-06/1.256, allocations: 0 / 0.8199 GB, free: 80.16 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003267/1.259, allocations: 2.819 MB / 0.8227 GB, free: 78.69 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002701/1.262, allocations: 0.6582 MB / 0.8233 GB, free: 78.53 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0169/1.279, allocations: 10.2 MB / 0.8333 GB, free: 74.43 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004926/1.284, allocations: 4.667 MB / 0.8379 GB, free: 72.85 MB / 458.7 MB Notification: Performance of SimCode: time 8.82e-07/1.284, allocations: 0 / 0.8379 GB, free: 72.85 MB / 458.7 MB (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_ComparisonPolyphase_SMR_Inverter_Polyphase_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_ComparisonPolyphase_SMR_Inverter_Polyphase.fmu > Modelica_trunk_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_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase_res.mat does not exist to compare? outputFormat=mat