Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_OpenCircuit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_OpenCircuit",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001457/0.001457, allocations: 172.4 kB / 14.1 MB, free: 1.223 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.429/1.429, allocations: 205.2 MB / 219.8 MB, free: 14.27 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008659/0.000866, allocations: 94.62 kB / 268 MB, free: 14.09 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.847e-05/2.85e-05, allocations: 0 / 322.6 MB, free: 17.23 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09229/0.09234, allocations: 47.57 MB / 370.1 MB, free: 1.59 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3975/0.4899, allocations: 149 MB / 0.5069 GB, free: 9.363 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002819/0.4903, allocations: 95.31 kB / 0.507 GB, free: 9.312 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9359/1.426, allocations: 232.1 MB / 0.7337 GB, free: 42.5 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.385e-06/1.426, allocations: 3.75 kB / 0.7337 GB, free: 42.5 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0003888/1.427, allocations: 159.8 kB / 0.7339 GB, free: 42.49 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1994 * Number of variables: 1994 Notification: Performance of Generate backend data structure: time 0.02135/1.448, allocations: 6.802 MB / 0.7405 GB, free: 40.18 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.846e-05/1.448, allocations: 7.094 kB / 0.7405 GB, free: 40.18 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004099/1.452, allocations: 1.143 MB / 0.7416 GB, free: 40.08 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0206/1.473, allocations: 3.66 MB / 0.7452 GB, free: 39.66 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01531/1.488, allocations: 5.925 MB / 0.751 GB, free: 38.83 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006163/1.489, allocations: 0.5239 MB / 0.7515 GB, free: 38.81 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003102/1.492, allocations: 0.6914 MB / 0.7522 GB, free: 38.8 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02788/1.52, allocations: 11.33 MB / 0.7632 GB, free: 37.96 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003218/1.52, allocations: 22.5 kB / 0.7633 GB, free: 37.95 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002526/1.523, allocations: 297.4 kB / 0.7635 GB, free: 37.73 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005074/1.523, allocations: 490.4 kB / 0.764 GB, free: 37.64 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0241/1.547, allocations: 10.49 MB / 0.7742 GB, free: 33.43 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07512/1.622, allocations: 38.33 MB / 0.8117 GB, free: 6.215 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01752/1.64, allocations: 18.41 MB / 0.8297 GB, free: 2.922 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007862/1.648, allocations: 4.198 MB / 0.8338 GB, free: 15.07 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02847/1.677, allocations: 13.65 MB / 0.8471 GB, free: 3.562 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.604e-05/1.677, allocations: 72.66 kB / 0.8472 GB, free: 3.484 MB / 442.7 MB Notification: Performance of pre-optimization done (n=399): time 6.813e-06/1.677, allocations: 0 / 0.8472 GB, free: 3.484 MB / 442.7 MB Notification: Performance of matching and sorting (n=415): time 0.3089/1.986, allocations: 14.92 MB / 0.8617 GB, free: 72.21 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001808/1.987, allocations: 1.938 MB / 0.8636 GB, free: 70.75 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00577/1.993, allocations: 2.936 MB / 0.8665 GB, free: 70.47 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008684/1.994, allocations: 86.2 kB / 0.8666 GB, free: 70.44 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002462/1.997, allocations: 3.159 MB / 0.8697 GB, free: 69.13 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001802/1.998, allocations: 1.4 MB / 0.871 GB, free: 68.24 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003962/1.999, allocations: 106.1 kB / 0.8711 GB, free: 68.24 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0003647/1.999, allocations: 0.5254 MB / 0.8716 GB, free: 67.93 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004553/2.004, allocations: 2.85 MB / 0.8744 GB, free: 67.91 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006362/2.01, allocations: 4.839 MB / 0.8791 GB, free: 65.48 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005824/2.016, allocations: 3.751 MB / 0.8828 GB, free: 65.43 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.319e-05/2.016, allocations: 19.86 kB / 0.8828 GB, free: 65.43 MB / 442.7 MB Notification: Performance of matching and sorting (n=716) (initialization): time 0.01809/2.034, allocations: 9.308 MB / 0.8919 GB, free: 65.06 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.679e-05/2.034, allocations: 34.06 kB / 0.892 GB, free: 65.06 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001044/2.034, allocations: 65.62 kB / 0.892 GB, free: 65.06 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004207/2.039, allocations: 2.465 MB / 0.8944 GB, free: 65 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004079/2.043, allocations: 1.053 MB / 0.8954 GB, free: 65 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006225/2.049, allocations: 5.402 MB / 0.9007 GB, free: 63.91 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00516/2.054, allocations: 319 kB / 0.901 GB, free: 63.88 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001301/2.056, allocations: 266.1 kB / 0.9013 GB, free: 63.88 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 298 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (560): * Single equations (assignments): 538 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 18 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 2 * 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: 0 * Non-linear torn systems: 2 {6 9,11 79} Notification: Performance of prepare postOptimizeDAE: time 0.002135/2.058, allocations: 441.8 kB / 0.9017 GB, free: 63.73 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001683/2.059, allocations: 411.2 kB / 0.9021 GB, free: 63.51 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01274/2.072, allocations: 7.809 MB / 0.9097 GB, free: 61.21 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.928e-05/2.072, allocations: 96.78 kB / 0.9098 GB, free: 61.17 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.196e-06/2.072, allocations: 3.719 kB / 0.9098 GB, free: 61.17 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.826e-05/2.072, allocations: 17.62 kB / 0.9098 GB, free: 61.17 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03364/2.106, allocations: 19.42 MB / 0.9288 GB, free: 52.41 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.995e-05/2.106, allocations: 6.688 kB / 0.9288 GB, free: 52.41 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002242/2.108, allocations: 0.5245 MB / 0.9293 GB, free: 52.39 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004673/2.113, allocations: 2.438 MB / 0.9317 GB, free: 51.68 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008889/2.114, allocations: 88.89 kB / 0.9318 GB, free: 51.64 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006951/2.121, allocations: 7.16 MB / 0.9388 GB, free: 47.14 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001386/2.122, allocations: 1.878 MB / 0.9406 GB, free: 45.47 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01717/2.14, allocations: 12.23 MB / 0.9525 GB, free: 39.34 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003413/2.143, allocations: 1.085 MB / 0.9536 GB, free: 38.68 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001712/2.145, allocations: 71.14 kB / 0.9537 GB, free: 38.64 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0034/2.148, allocations: 198.2 kB / 0.9539 GB, free: 38.59 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00102/2.149, allocations: 320 kB / 0.9542 GB, free: 38.52 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003711/2.15, allocations: 121.8 kB / 0.9543 GB, free: 38.5 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.004/2.154, allocations: 2.161 MB / 0.9564 GB, free: 37.25 MB / 442.7 MB Notification: Performance of sort global known variables: time 7.42e-07/2.154, allocations: 4 kB / 0.9564 GB, free: 37.25 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.007325/2.161, allocations: 1.367 MB / 0.9577 GB, free: 35.89 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 26 * Number of states: 1 ($STATESET1.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (281): * Single equations (assignments): 259 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 18 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 3 * 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: 0 * Non-linear torn systems: 3 {3 3,6 9,11 79} Notification: Performance of Backend phase and start with SimCode phase: time 0.01708/2.178, allocations: 14.81 MB / 0.9722 GB, free: 22.27 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01216/2.19, allocations: 7.23 MB / 0.9793 GB, free: 15.72 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 9.788e-06/2.19, allocations: 0 / 0.9793 GB, free: 15.72 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006459/2.197, allocations: 3.595 MB / 0.9828 GB, free: 12.45 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005605/2.203, allocations: 0.8878 MB / 0.9836 GB, free: 11.76 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03523/2.238, allocations: 14.2 MB / 0.9975 GB, free: 15.26 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005348/2.243, allocations: 4.672 MB / 1.002 GB, free: 11.69 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.004576/2.248, allocations: 1.174 MB / 1.003 GB, free: 10.88 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004883/2.253, allocations: 2.553 MB / 1.006 GB, free: 8.508 MB / 458.7 MB Notification: Performance of SimCode: time 1.012e-06/2.253, allocations: 0 / 1.006 GB, free: 8.508 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4364/2.689, allocations: 131.7 MB / 1.134 GB, free: 31.46 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000201/2.689, allocations: 249.5 kB / 1.135 GB, free: 31.12 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.098/7.787, allocations: 0 / 1.135 GB, free: 31.12 MB / 458.7 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_OpenCircuit_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_OpenCircuit.fmu > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit_res.mat does not exist to compare? outputFormat=mat