Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.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.SMPM_Inverter,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_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 trunk/package.mo): time 0.001019/0.001019, allocations: 202.3 kB / 8.541 MB, free: 1.805 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.159/1.159, allocations: 225.5 MB / 234.4 MB, free: 3.316 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000926/0.000926, allocations: 92.7 kB / 286.3 MB, free: 5.234 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0881/0.08906, allocations: 56.92 MB / 343.3 MB, free: 8.59 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07775/0.1668, allocations: 51.48 MB / 394.7 MB, free: 5.059 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2401/0.407, allocations: 131.8 MB / 0.5142 GB, free: 10.26 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002121/0.4072, allocations: 90.27 kB / 0.5143 GB, free: 10.21 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1413 * Number of variables: 1413 Notification: Performance of Generate backend data structure: time 0.4226/0.8298, allocations: 131.2 MB / 0.6424 GB, free: 72.95 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.235e-05/0.8298, allocations: 8.188 kB / 0.6424 GB, free: 72.95 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005314/0.8352, allocations: 1.027 MB / 0.6434 GB, free: 72.57 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00977/0.8449, allocations: 4.641 MB / 0.648 GB, free: 70.27 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002008/0.8452, allocations: 176.1 kB / 0.6481 GB, free: 70.27 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008254/0.846, allocations: 318 kB / 0.6484 GB, free: 70.27 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00884/0.8548, allocations: 5.183 MB / 0.6535 GB, free: 68.09 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008734/0.8636, allocations: 6.115 MB / 0.6595 GB, free: 65.38 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001205/0.8637, allocations: 15.25 kB / 0.6595 GB, free: 65.37 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004328/0.8642, allocations: 6.469 kB / 0.6595 GB, free: 65.37 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000158/0.8643, allocations: 255.2 kB / 0.6597 GB, free: 65.34 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02687/0.8912, allocations: 21.78 MB / 0.681 GB, free: 53.4 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002265/0.8935, allocations: 1.812 MB / 0.6828 GB, free: 52.7 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002714/0.8962, allocations: 2.214 MB / 0.6849 GB, free: 51.9 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009595/0.9058, allocations: 6.856 MB / 0.6916 GB, free: 47.9 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.58e-05/0.9059, allocations: 64.58 kB / 0.6917 GB, free: 47.82 MB / 442.7 MB Notification: Performance of pre-optimization done (n=267): time 3.917e-06/0.9059, allocations: 0 / 0.6917 GB, free: 47.82 MB / 442.7 MB Notification: Performance of matching and sorting (n=294): time 0.01497/0.9209, allocations: 9.189 MB / 0.7007 GB, free: 39.26 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.572e-05/0.9209, allocations: 93.66 kB / 0.7007 GB, free: 39.16 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002653/0.9236, allocations: 2.234 MB / 0.7029 GB, free: 36.91 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001506/0.9237, allocations: 25.7 kB / 0.7029 GB, free: 36.88 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005815/0.9243, allocations: 1.97 MB / 0.7049 GB, free: 34.88 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004608/0.9248, allocations: 0.9622 MB / 0.7058 GB, free: 33.91 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001673/0.9249, allocations: 0 / 0.7058 GB, free: 33.91 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001348/0.9251, allocations: 445.5 kB / 0.7062 GB, free: 33.46 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001801/0.9269, allocations: 1.456 MB / 0.7077 GB, free: 32.01 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002134/0.929, allocations: 2.427 MB / 0.71 GB, free: 29.16 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002605/0.9316, allocations: 1.947 MB / 0.7119 GB, free: 27.19 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.119e-05/0.9317, allocations: 11.94 kB / 0.7119 GB, free: 27.18 MB / 442.7 MB Notification: Performance of matching and sorting (n=455) (initialization): time 0.006908/0.9386, allocations: 4.881 MB / 0.7167 GB, free: 22.23 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.205e-05/0.9386, allocations: 7.938 kB / 0.7167 GB, free: 22.22 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.561e-05/0.9386, allocations: 32 kB / 0.7167 GB, free: 22.19 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001628/0.9403, allocations: 0.7191 MB / 0.7174 GB, free: 21.46 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00308/0.9434, allocations: 0.8035 MB / 0.7182 GB, free: 20.65 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007836/0.9512, allocations: 9.03 MB / 0.7271 GB, free: 11.16 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002353/0.9536, allocations: 107.9 kB / 0.7272 GB, free: 11.06 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002718/0.9539, allocations: 160 kB / 0.7273 GB, free: 10.9 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 139 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (418): * Single equations (assignments): 412 * 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 {(6,72.2%) 23,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004168/0.9543, allocations: 203.8 kB / 0.7275 GB, free: 10.7 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004237/0.9547, allocations: 332 kB / 0.7278 GB, free: 10.37 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006946/0.9617, allocations: 4.472 MB / 0.7322 GB, free: 5.801 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.804e-05/0.9617, allocations: 32 kB / 0.7322 GB, free: 5.77 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.241e-05/0.9617, allocations: 15.89 kB / 0.7322 GB, free: 5.754 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.189e-05/0.9617, allocations: 11.95 kB / 0.7322 GB, free: 5.742 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1309/1.093, allocations: 9.335 MB / 0.7414 GB, free: 102 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.064e-05/1.093, allocations: 7.062 kB / 0.7414 GB, free: 102 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002143/1.095, allocations: 470.6 kB / 0.7418 GB, free: 102 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002404/1.097, allocations: 0.9522 MB / 0.7427 GB, free: 101.9 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001985/1.097, allocations: 31.8 kB / 0.7428 GB, free: 101.9 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0124/1.11, allocations: 14.86 MB / 0.7573 GB, free: 93.42 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.46e-06/1.11, allocations: 8.312 kB / 0.7573 GB, free: 93.42 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.008483/1.118, allocations: 6.895 MB / 0.764 GB, free: 92.29 MB / 442.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01066/1.129, allocations: 9.455 MB / 0.7733 GB, free: 90.75 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00139/1.13, allocations: 0.7247 MB / 0.774 GB, free: 90.64 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005373/1.131, allocations: 21.52 kB / 0.774 GB, free: 90.64 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001755/1.133, allocations: 105.2 kB / 0.7741 GB, free: 90.64 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002958/1.133, allocations: 166.2 kB / 0.7742 GB, free: 90.63 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000206/1.133, allocations: 83.75 kB / 0.7743 GB, free: 90.63 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.002152/1.135, allocations: 1.648 MB / 0.7759 GB, free: 90.48 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003696/1.139, allocations: 1.026 MB / 0.7769 GB, free: 90.48 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 13 (vfController.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,smpmE.inertiaRotor.w,smpmE.idq_sr[1],smpmE.idq_sr[2],smpmE.idq_rr[2],smpmE.idq_dr[1],loadInertiaM.phi,loadInertiaE.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (235): * Single equations (assignments): 228 * 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 {(6,72.2%) 23,(1,100.0%) 5,(1,100.0%) 1,(2,100.0%) 4,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006935/1.14, allocations: 0.5006 MB / 0.7774 GB, free: 90.38 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.005193/1.145, allocations: 4.325 MB / 0.7816 GB, free: 89.71 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.016e-06/1.145, allocations: 0 / 0.7816 GB, free: 89.71 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003591/1.149, allocations: 2.745 MB / 0.7843 GB, free: 88.99 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002707/1.151, allocations: 0.6614 MB / 0.785 GB, free: 88.98 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0133/1.165, allocations: 8.478 MB / 0.7933 GB, free: 85.96 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003546/1.168, allocations: 3.808 MB / 0.797 GB, free: 84.64 MB / 442.7 MB Notification: Performance of SimCode: time 3.91e-07/1.168, allocations: 0 / 0.797 GB, free: 84.64 MB / 442.7 MB (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Inverter_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Inverter.fmu > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe 2>&1)