Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001175/0.001175, allocations: 96.58 kB / 17 MB, free: 6.355 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001363/0.001363, allocations: 193 kB / 17.9 MB, free: 5.914 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.35/1.35, allocations: 227.4 MB / 246 MB, free: 11.99 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002148/0.0002149, allocations: 8 kB / 306.8 MB, free: 1.453 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09709/0.09732, allocations: 51.49 MB / 358.3 MB, free: 13.97 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.2214/0.3187, allocations: 24.91 MB / 383.2 MB, free: 8.504 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01752/0.3363, allocations: 7.805 MB / 391 MB, free: 3.402 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007149/0.3435, allocations: 195.9 kB / 391.2 MB, free: 3.363 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006806/0.3504, allocations: 1.361 MB / 392.6 MB, free: 2.703 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.011/0.3614, allocations: 2.282 MB / 394.9 MB, free: 1.312 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00465/0.3661, allocations: 1.243 MB / 396.1 MB, free: 0.5586 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01869/0.3848, allocations: 10.94 MB / 407.1 MB, free: 10.63 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04075/0.4256, allocations: 17.36 MB / 424.4 MB, free: 10.37 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009287/0.4349, allocations: 3.835 MB / 428.3 MB, free: 6.523 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009435/0.4444, allocations: 4.401 MB / 432.7 MB, free: 2.105 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002758/0.4472, allocations: 0.5977 MB / 433.3 MB, free: 1.508 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005751/0.453, allocations: 0.9683 MB / 434.2 MB, free: 0.5391 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003949/0.457, allocations: 1.798 MB / 436 MB, free: 14.73 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00542/0.4624, allocations: 1.958 MB / 438 MB, free: 12.77 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0265/0.489, allocations: 17.42 MB / 455.4 MB, free: 11.3 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.124e-05/0.489, allocations: 0 / 455.4 MB, free: 11.3 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.767e-06/0.489, allocations: 0 / 455.4 MB, free: 11.3 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0007328/0.4898, allocations: 0 / 455.4 MB, free: 11.3 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2599 * Number of variables: 2599 Notification: Performance of Generate backend data structure: time 0.0308/0.5206, allocations: 9.93 MB / 465.3 MB, free: 1.273 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.023e-05/0.5207, allocations: 8.031 kB / 465.3 MB, free: 1.266 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006007/0.5267, allocations: 1.543 MB / 466.9 MB, free: 15.71 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03195/0.5587, allocations: 5.626 MB / 472.5 MB, free: 10.07 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02009/0.5788, allocations: 6.064 MB / 478.6 MB, free: 3.945 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001114/0.58, allocations: 0.7026 MB / 479.3 MB, free: 3.242 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005129/0.5852, allocations: 0.9334 MB / 480.2 MB, free: 2.309 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04818/0.6334, allocations: 15.01 MB / 495.2 MB, free: 3.223 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000617/0.6341, allocations: 15.81 kB / 495.2 MB, free: 3.207 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004419/0.6385, allocations: 392 kB / 495.6 MB, free: 2.824 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008022/0.6394, allocations: 0.5195 MB / 496.1 MB, free: 2.301 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02962/0.669, allocations: 13.66 MB / 0.4979 GB, free: 4.617 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4428/1.112, allocations: 48.18 MB / 0.5449 GB, free: 107 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0194/1.131, allocations: 28.54 MB / 0.5728 GB, free: 81.75 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005079/1.136, allocations: 3.061 MB / 0.5758 GB, free: 81.72 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004185/1.137, allocations: 326.5 kB / 0.5761 GB, free: 81.43 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.842e-05/1.137, allocations: 76.61 kB / 0.5761 GB, free: 81.39 MB / 446.1 MB Notification: Performance of pre-optimization done (n=384): time 5.28e-06/1.137, allocations: 0 / 0.5761 GB, free: 81.39 MB / 446.1 MB Notification: Performance of matching and sorting (n=392): time 0.03383/1.171, allocations: 15.59 MB / 0.5914 GB, free: 76.92 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.287e-05/1.171, allocations: 93.14 kB / 0.5915 GB, free: 76.86 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005002/1.176, allocations: 3.573 MB / 0.5949 GB, free: 75.51 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000681/1.177, allocations: 92.61 kB / 0.595 GB, free: 75.43 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002041/1.179, allocations: 4.046 MB / 0.599 GB, free: 72.39 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001576/1.18, allocations: 1.349 MB / 0.6003 GB, free: 71.3 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003341/1.181, allocations: 122.1 kB / 0.6004 GB, free: 71.2 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0003011/1.181, allocations: 0.5435 MB / 0.601 GB, free: 70.72 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003536/1.184, allocations: 2.568 MB / 0.6035 GB, free: 69.34 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005126/1.19, allocations: 5.056 MB / 0.6084 GB, free: 64.56 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005924/1.196, allocations: 3.759 MB / 0.6121 GB, free: 62.46 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.404e-05/1.196, allocations: 24.69 kB / 0.6121 GB, free: 62.46 MB / 446.1 MB Notification: Performance of matching and sorting (n=769) (initialization): time 0.01585/1.211, allocations: 8.571 MB / 0.6205 GB, free: 57.48 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.868e-05/1.212, allocations: 40 kB / 0.6205 GB, free: 57.45 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001818/1.212, allocations: 84 kB / 0.6206 GB, free: 57.36 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002027/1.214, allocations: 0.8437 MB / 0.6214 GB, free: 56.52 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00507/1.219, allocations: 1.373 MB / 0.6227 GB, free: 55.14 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008732/1.228, allocations: 7.106 MB / 0.6297 GB, free: 47.9 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004772/1.232, allocations: 327.3 kB / 0.63 GB, free: 47.58 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001124/1.234, allocations: 311.9 kB / 0.6303 GB, free: 47.28 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 378 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (722): * Single equations (assignments): 721 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(8,65.6%) 40} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.006431/1.24, allocations: 3.514 MB / 0.6337 GB, free: 43.75 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001046/1.241, allocations: 407 kB / 0.6341 GB, free: 43.35 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009153/1.25, allocations: 5.96 MB / 0.6399 GB, free: 37.35 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.96e-05/1.25, allocations: 40 kB / 0.64 GB, free: 37.31 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.395e-05/1.25, allocations: 8 kB / 0.64 GB, free: 37.3 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.842e-05/1.25, allocations: 19.92 kB / 0.64 GB, free: 37.29 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02592/1.276, allocations: 15.23 MB / 0.6549 GB, free: 21.88 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.575e-05/1.276, allocations: 7.938 kB / 0.6549 GB, free: 21.87 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00247/1.279, allocations: 0.6982 MB / 0.6556 GB, free: 21.17 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001715/1.281, allocations: 0.6977 MB / 0.6562 GB, free: 20.47 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003946/1.281, allocations: 83.98 kB / 0.6563 GB, free: 20.39 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007226/1.288, allocations: 6.153 MB / 0.6623 GB, free: 14.1 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.621e-06/1.288, allocations: 4 kB / 0.6623 GB, free: 14.09 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01257/1.301, allocations: 8.693 MB / 0.6708 GB, free: 5.281 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002363/1.303, allocations: 0.8902 MB / 0.6717 GB, free: 4.367 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008651/1.304, allocations: 75.95 kB / 0.6718 GB, free: 4.293 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001995/1.306, allocations: 183.9 kB / 0.6719 GB, free: 4.113 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004534/1.307, allocations: 266.7 kB / 0.6722 GB, free: 3.852 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002151/1.307, allocations: 112 kB / 0.6723 GB, free: 3.742 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004017/1.311, allocations: 2.388 MB / 0.6746 GB, free: 1.367 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.91e-07/1.311, allocations: 0 / 0.6746 GB, free: 1.367 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0102/1.321, allocations: 1.554 MB / 0.6762 GB, free: 15.81 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 21 * Number of states: 1 (smpmQS.phiMechanical) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (377): * Single equations (assignments): 376 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(8,59.4%) 38} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02005/1.341, allocations: 9.419 MB / 0.6854 GB, free: 6.266 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.01482/1.356, allocations: 6.462 MB / 0.6917 GB, free: 15.8 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.394e-05/1.356, allocations: 4 kB / 0.6917 GB, free: 15.79 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006695/1.363, allocations: 2.943 MB / 0.6945 GB, free: 12.84 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007229/1.37, allocations: 0.9176 MB / 0.6954 GB, free: 11.95 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3079/1.678, allocations: 45.03 MB / 0.7394 GB, free: 135 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00672/1.685, allocations: 5.969 MB / 0.7452 GB, free: 132.8 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.004671/1.69, allocations: 1.89 MB / 0.7471 GB, free: 132.6 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00413/1.694, allocations: 3.202 MB / 0.7502 GB, free: 129.7 MB / 478.1 MB Notification: Performance of SimCode: time 2.114e-06/1.694, allocations: 0 / 0.7502 GB, free: 129.7 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1586/1.852, allocations: 116 MB / 0.8635 GB, free: 17.18 MB / 478.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002436/1.853, allocations: 266.2 kB / 0.8637 GB, free: 16.82 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.979/6.832, allocations: 2.812 kB / 0.8637 GB, free: 16.82 MB / 478.1 MB (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA.fmu > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA_res.mat does not exist to compare? outputFormat=mat