Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_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.SMPM_Inverter_Polyphase,fileNamePrefix="Modelica_trunk_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_trunk_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 trunk/package.mo): time 0.001136/0.001136, allocations: 200.2 kB / 8.54 MB, free: 1.836 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.105/1.105, allocations: 225.5 MB / 234.4 MB, free: 3.418 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008691/0.0008692, allocations: 98.41 kB / 286.3 MB, free: 5.234 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08436/0.08526, allocations: 56.92 MB / 343.3 MB, free: 8.633 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07389/0.1592, allocations: 51.48 MB / 394.7 MB, free: 5.098 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2197/0.3789, allocations: 119.9 MB / 0.5026 GB, free: 6.195 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002241/0.3792, allocations: 105.2 kB / 0.5027 GB, free: 6.137 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.4919/0.871, allocations: 180.3 MB / 0.6788 GB, free: 54.84 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.008e-05/0.8711, allocations: 6.719 kB / 0.6788 GB, free: 54.84 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008022/0.8791, allocations: 1.607 MB / 0.6804 GB, free: 54.02 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01095/0.8901, allocations: 6.025 MB / 0.6863 GB, free: 50.01 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001797/0.8903, allocations: 242.2 kB / 0.6865 GB, free: 50.01 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009523/0.8912, allocations: 434.1 kB / 0.6869 GB, free: 49.99 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01052/0.9018, allocations: 7.233 MB / 0.694 GB, free: 46.38 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01157/0.9133, allocations: 8.392 MB / 0.7022 GB, free: 38.12 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000143/0.9135, allocations: 15.91 kB / 0.7022 GB, free: 38.11 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005689/0.9141, allocations: 4 kB / 0.7022 GB, free: 38.11 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001885/0.9143, allocations: 354.6 kB / 0.7025 GB, free: 37.76 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03409/0.9484, allocations: 29.73 MB / 0.7315 GB, free: 7.496 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00255/0.951, allocations: 2.332 MB / 0.7338 GB, free: 5.168 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004047/0.955, allocations: 3.365 MB / 0.7371 GB, free: 1.797 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.131/1.086, allocations: 9.251 MB / 0.7461 GB, free: 90.25 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.554e-05/1.086, allocations: 72.72 kB / 0.7462 GB, free: 90.21 MB / 442.7 MB Notification: Performance of pre-optimization done (n=354): time 5.24e-06/1.086, allocations: 0 / 0.7462 GB, free: 90.21 MB / 442.7 MB Notification: Performance of matching and sorting (n=362): time 0.0146/1.101, allocations: 9.561 MB / 0.7555 GB, free: 89.04 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.74e-05/1.101, allocations: 90 kB / 0.7556 GB, free: 88.97 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003147/1.104, allocations: 2.565 MB / 0.7581 GB, free: 88.73 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001797/1.104, allocations: 25.7 kB / 0.7582 GB, free: 88.7 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008407/1.105, allocations: 2.571 MB / 0.7607 GB, free: 87.37 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00059/1.106, allocations: 1.178 MB / 0.7618 GB, free: 86.59 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001811/1.106, allocations: 3.312 kB / 0.7618 GB, free: 86.59 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001545/1.106, allocations: 476.4 kB / 0.7623 GB, free: 86.27 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002004/1.108, allocations: 1.647 MB / 0.7639 GB, free: 86.26 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002376/1.11, allocations: 2.766 MB / 0.7666 GB, free: 84.95 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003229/1.114, allocations: 2.28 MB / 0.7688 GB, free: 84.91 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.505e-05/1.114, allocations: 9.844 kB / 0.7688 GB, free: 84.91 MB / 442.7 MB Notification: Performance of matching and sorting (n=545) (initialization): time 0.00736/1.121, allocations: 5.268 MB / 0.774 GB, free: 84.45 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.146e-05/1.121, allocations: 3.688 kB / 0.774 GB, free: 84.45 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.23e-05/1.121, allocations: 37.72 kB / 0.774 GB, free: 84.45 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008273/1.122, allocations: 399 kB / 0.7744 GB, free: 84.4 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003576/1.125, allocations: 0.9808 MB / 0.7754 GB, free: 84.39 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004514/1.13, allocations: 6.971 MB / 0.7822 GB, free: 79.46 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002725/1.133, allocations: 108.4 kB / 0.7823 GB, free: 79.45 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003199/1.133, allocations: 181.2 kB / 0.7824 GB, free: 79.45 MB / 442.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.0005001/1.134, allocations: 212.1 kB / 0.7826 GB, free: 79.32 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004588/1.134, allocations: 384.4 kB / 0.783 GB, free: 79.12 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007531/1.142, allocations: 4.938 MB / 0.7878 GB, free: 78.67 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.115e-05/1.142, allocations: 32.53 kB / 0.7879 GB, free: 78.67 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.462e-05/1.142, allocations: 20.75 kB / 0.7879 GB, free: 78.67 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.701e-05/1.142, allocations: 16.22 kB / 0.7879 GB, free: 78.67 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01453/1.156, allocations: 11.1 MB / 0.7987 GB, free: 77.33 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.129e-05/1.156, allocations: 6.938 kB / 0.7987 GB, free: 77.33 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002399/1.159, allocations: 0.5499 MB / 0.7993 GB, free: 77.33 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001966/1.161, allocations: 0.8704 MB / 0.8001 GB, free: 77.16 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002153/1.161, allocations: 48.22 kB / 0.8002 GB, free: 77.14 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01191/1.173, allocations: 15.33 MB / 0.8151 GB, free: 65.24 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.949e-06/1.173, allocations: 9.5 kB / 0.8152 GB, free: 65.24 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.008994/1.182, allocations: 7.613 MB / 0.8226 GB, free: 61.48 MB / 442.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0112/1.193, allocations: 10.45 MB / 0.8328 GB, free: 56.23 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001546/1.195, allocations: 0.8461 MB / 0.8336 GB, free: 55.68 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005726/1.195, allocations: 23.25 kB / 0.8336 GB, free: 55.68 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001905/1.197, allocations: 101.3 kB / 0.8337 GB, free: 55.68 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000338/1.197, allocations: 197.7 kB / 0.8339 GB, free: 55.64 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002366/1.198, allocations: 100.4 kB / 0.834 GB, free: 55.62 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.002725/1.2, allocations: 1.893 MB / 0.8359 GB, free: 54.84 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004722/1.205, allocations: 1.221 MB / 0.8371 GB, free: 54.76 MB / 442.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.0007723/1.206, allocations: 0.5422 MB / 0.8376 GB, free: 54.63 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.00545/1.211, allocations: 4.679 MB / 0.8422 GB, free: 52.57 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.669e-06/1.211, allocations: 0 / 0.8422 GB, free: 52.57 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003582/1.215, allocations: 2.986 MB / 0.8451 GB, free: 51.05 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003114/1.218, allocations: 0.7406 MB / 0.8458 GB, free: 50.88 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01687/1.235, allocations: 10.58 MB / 0.8561 GB, free: 46.54 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004542/1.239, allocations: 4.785 MB / 0.8608 GB, free: 44.95 MB / 442.7 MB Notification: Performance of SimCode: time 1.222e-06/1.239, allocations: 1.406 kB / 0.8608 GB, free: 44.95 MB / 442.7 MB (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_ComparisonPolyphase_SMPM_Inverter_Polyphase_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_ComparisonPolyphase_SMPM_Inverter_Polyphase.fmu > Modelica_trunk_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_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase_res.mat does not exist to compare? outputFormat=mat