Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.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_VoltageSource,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_VoltageSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_VoltageSource",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.001038/0.001038, allocations: 199.7 kB / 8.538 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.141/1.141, allocations: 225.5 MB / 234.4 MB, free: 15.18 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00094/0.0009399, allocations: 97.52 kB / 286.4 MB, free: 12.59 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0945/0.09546, allocations: 56.9 MB / 343.3 MB, free: 3.676 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.166/0.2615, allocations: 51.46 MB / 394.7 MB, free: 33.14 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2315/0.493, allocations: 120.1 MB / 0.5027 GB, free: 102.6 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002757/0.4934, allocations: 93.3 kB / 0.5028 GB, free: 102.6 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: 911 * Number of variables: 911 Notification: Performance of Generate backend data structure: time 0.1802/0.6736, allocations: 85.62 MB / 0.5864 GB, free: 20.32 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.023e-05/0.6736, allocations: 12 kB / 0.5864 GB, free: 20.31 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002571/0.6762, allocations: 0.6471 MB / 0.5871 GB, free: 19.66 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005944/0.6822, allocations: 3.394 MB / 0.5904 GB, free: 16.21 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.249e-05/0.6823, allocations: 115.9 kB / 0.5905 GB, free: 16.1 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003781/0.6827, allocations: 207.9 kB / 0.5907 GB, free: 15.89 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004678/0.6873, allocations: 3.251 MB / 0.5939 GB, free: 12.64 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005205/0.6926, allocations: 3.861 MB / 0.5976 GB, free: 8.641 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.532e-05/0.6926, allocations: 3.906 kB / 0.5976 GB, free: 8.637 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002641/0.6929, allocations: 4 kB / 0.5977 GB, free: 8.633 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001037/0.693, allocations: 170.7 kB / 0.5978 GB, free: 8.465 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0175/0.7105, allocations: 14.11 MB / 0.6116 GB, free: 9.902 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001721/0.7123, allocations: 1.189 MB / 0.6128 GB, free: 8.715 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001938/0.7142, allocations: 1.305 MB / 0.614 GB, free: 7.41 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006453/0.7207, allocations: 4.291 MB / 0.6182 GB, free: 2.988 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.01e-05/0.7207, allocations: 51.88 kB / 0.6183 GB, free: 2.93 MB / 394.7 MB Notification: Performance of pre-optimization done (n=157): time 3.196e-06/0.7207, allocations: 0 / 0.6183 GB, free: 2.93 MB / 394.7 MB Notification: Performance of matching and sorting (n=161): time 0.007459/0.7282, allocations: 4.676 MB / 0.6228 GB, free: 14.15 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.511e-05/0.7282, allocations: 68.72 kB / 0.6229 GB, free: 14.07 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002095/0.7304, allocations: 1.573 MB / 0.6244 GB, free: 12.46 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 9.415e-05/0.7305, allocations: 29.69 kB / 0.6245 GB, free: 12.43 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000672/0.7311, allocations: 1.317 MB / 0.6257 GB, free: 11.09 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003744/0.7315, allocations: 0.5273 MB / 0.6263 GB, free: 10.55 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.157e-05/0.7316, allocations: 0 / 0.6263 GB, free: 10.55 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001537/0.7318, allocations: 385.9 kB / 0.6266 GB, free: 10.17 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001168/0.733, allocations: 0.785 MB / 0.6274 GB, free: 9.383 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001505/0.7345, allocations: 1.401 MB / 0.6288 GB, free: 7.699 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001697/0.7362, allocations: 1.087 MB / 0.6298 GB, free: 6.609 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.694e-06/0.7362, allocations: 4 kB / 0.6298 GB, free: 6.605 MB / 410.7 MB Notification: Performance of matching and sorting (n=260) (initialization): time 0.003996/0.7402, allocations: 2.584 MB / 0.6324 GB, free: 3.984 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.394e-05/0.7402, allocations: 16.42 kB / 0.6324 GB, free: 3.969 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.005e-05/0.7402, allocations: 24 kB / 0.6324 GB, free: 3.945 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003822/0.7406, allocations: 138.5 kB / 0.6325 GB, free: 3.801 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001926/0.7426, allocations: 495.2 kB / 0.633 GB, free: 3.316 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002184/0.7448, allocations: 2.94 MB / 0.6359 GB, free: 144 kB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001253/0.746, allocations: 63.84 kB / 0.6359 GB, free: 80 kB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001768/0.7462, allocations: 84.11 kB / 0.636 GB, free: 15.99 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 89 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (253): * Single equations (assignments): 250 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 5,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000266/0.7465, allocations: 172.2 kB / 0.6362 GB, free: 15.82 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002847/0.7468, allocations: 209.4 kB / 0.6364 GB, free: 15.61 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003892/0.7507, allocations: 2.358 MB / 0.6387 GB, free: 13.2 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.344e-05/0.7507, allocations: 16.12 kB / 0.6387 GB, free: 13.18 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.418e-06/0.7507, allocations: 12 kB / 0.6387 GB, free: 13.17 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.713e-05/0.7508, allocations: 15.86 kB / 0.6387 GB, free: 13.15 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00792/0.7587, allocations: 5.33 MB / 0.6439 GB, free: 7.668 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.184e-06/0.7587, allocations: 4 kB / 0.6439 GB, free: 7.664 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001294/0.76, allocations: 271.6 kB / 0.6442 GB, free: 7.398 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007203/0.7607, allocations: 267.5 kB / 0.6444 GB, free: 7.125 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001069/0.7609, allocations: 15.89 kB / 0.6445 GB, free: 7.109 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1133/0.8741, allocations: 6.721 MB / 0.651 GB, free: 105.6 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.45e-06/0.8742, allocations: 10.06 kB / 0.651 GB, free: 105.6 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004352/0.8785, allocations: 3.73 MB / 0.6547 GB, free: 104.9 MB / 426.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.005336/0.8839, allocations: 5.331 MB / 0.6599 GB, free: 103.9 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007182/0.8846, allocations: 497.3 kB / 0.6604 GB, free: 103.8 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003165/0.885, allocations: 4.562 kB / 0.6604 GB, free: 103.8 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001059/0.886, allocations: 48.03 kB / 0.6604 GB, free: 103.8 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001445/0.8862, allocations: 91.86 kB / 0.6605 GB, free: 103.8 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000105/0.8863, allocations: 38.25 kB / 0.6605 GB, free: 103.8 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.001422/0.8877, allocations: 1.171 MB / 0.6617 GB, free: 103.7 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002249/0.89, allocations: 0.5919 MB / 0.6622 GB, free: 103.7 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 6 (smpm.inertiaRotor.w,smpm.stator.core.Phi.re,smpm.stator.core.Phi.im,quadraticSpeedDependentTorque.phi,currentController.PI_d.x,currentController.PI_q.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (138): * Single equations (assignments): 134 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000516/0.8905, allocations: 472.6 kB / 0.6627 GB, free: 103.6 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002427/0.8929, allocations: 2.245 MB / 0.6649 GB, free: 103.2 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.8929, allocations: 3.25 kB / 0.6649 GB, free: 103.2 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001561/0.8945, allocations: 1.402 MB / 0.6663 GB, free: 102.8 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001742/0.8963, allocations: 430.5 kB / 0.6667 GB, free: 102.8 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00766/0.9039, allocations: 5.022 MB / 0.6716 GB, free: 101.7 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002283/0.9062, allocations: 2.676 MB / 0.6742 GB, free: 100.9 MB / 426.7 MB Notification: Performance of SimCode: time 2.8e-07/0.9062, allocations: 0 / 0.6742 GB, free: 100.9 MB / 426.7 MB (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_VoltageSource_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_VoltageSource.fmu > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource_res.mat does not exist to compare? outputFormat=mat