Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.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.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit,fileNamePrefix="Modelica_trunk_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_trunk_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 trunk/package.mo): time 0.001533/0.001533, allocations: 196.8 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.552/1.552, allocations: 225.4 MB / 240.1 MB, free: 15.04 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009175/0.0009181, allocations: 92.36 kB / 292.1 MB, free: 5.957 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.932e-05/3.937e-05, allocations: 4 kB / 350.7 MB, free: 2.41 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1322/0.1323, allocations: 51.48 MB / 402.1 MB, free: 14.88 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4817/0.614, allocations: 149.7 MB / 0.5389 GB, free: 4.766 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002903/0.6144, allocations: 106.6 kB / 0.539 GB, free: 4.707 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.211/1.826, allocations: 244.4 MB / 0.7777 GB, free: 35.89 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.214e-06/1.826, allocations: 0 / 0.7777 GB, free: 35.89 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.000912/1.827, allocations: 159.7 kB / 0.7778 GB, free: 35.88 MB / 442.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.03285/1.859, allocations: 6.834 MB / 0.7845 GB, free: 33.57 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.656e-05/1.86, allocations: 8.625 kB / 0.7845 GB, free: 33.57 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00746/1.867, allocations: 1.143 MB / 0.7856 GB, free: 33.47 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02437/1.891, allocations: 3.651 MB / 0.7892 GB, free: 33.05 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02296/1.914, allocations: 6.065 MB / 0.7951 GB, free: 32.25 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001147/1.916, allocations: 0.5172 MB / 0.7956 GB, free: 32.23 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00477/1.92, allocations: 0.6917 MB / 0.7963 GB, free: 32.22 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.041/1.961, allocations: 11.04 MB / 0.8071 GB, free: 31.4 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006745/1.962, allocations: 10.84 kB / 0.8071 GB, free: 31.4 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00409/1.966, allocations: 300.9 kB / 0.8074 GB, free: 31.4 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008465/1.967, allocations: 0.5101 MB / 0.8079 GB, free: 31.38 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02791/1.995, allocations: 10.06 MB / 0.8177 GB, free: 31.32 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08293/2.078, allocations: 38.81 MB / 0.8556 GB, free: 11 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02239/2.101, allocations: 28.29 MB / 0.8832 GB, free: 15.42 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00645/2.107, allocations: 2.597 MB / 0.8858 GB, free: 14.41 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02117/2.128, allocations: 8.451 MB / 0.894 GB, free: 9.805 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.965e-05/2.128, allocations: 58.44 kB / 0.8941 GB, free: 9.746 MB / 474.7 MB Notification: Performance of pre-optimization done (n=217): time 5.34e-06/2.128, allocations: 0 / 0.8941 GB, free: 9.746 MB / 474.7 MB Notification: Performance of matching and sorting (n=233): time 0.0183/2.147, allocations: 8.336 MB / 0.9022 GB, free: 4.84 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.002402/2.149, allocations: 1.926 MB / 0.9041 GB, free: 2.855 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007399/2.157, allocations: 3.338 MB / 0.9074 GB, free: 15.83 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005954/2.157, allocations: 61.7 kB / 0.9074 GB, free: 15.76 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00297/2.16, allocations: 3.549 MB / 0.9109 GB, free: 12.6 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001295/2.162, allocations: 0.828 MB / 0.9117 GB, free: 11.86 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003544/2.162, allocations: 96 kB / 0.9118 GB, free: 11.77 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0003517/2.162, allocations: 0.4952 MB / 0.9123 GB, free: 11.32 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003165/2.165, allocations: 1.834 MB / 0.9141 GB, free: 9.66 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006102/2.172, allocations: 4.263 MB / 0.9182 GB, free: 4.48 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004817/2.176, allocations: 2.79 MB / 0.9209 GB, free: 2.102 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.803e-05/2.177, allocations: 24 kB / 0.921 GB, free: 2.078 MB / 490.7 MB Notification: Performance of matching and sorting (n=620) (initialization): time 0.417/2.593, allocations: 6.994 MB / 0.9278 GB, free: 76.91 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001011/2.594, allocations: 41.97 kB / 0.9278 GB, free: 76.91 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001964/2.594, allocations: 86.06 kB / 0.9279 GB, free: 76.91 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00221/2.596, allocations: 0.748 MB / 0.9286 GB, free: 76.89 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004454/2.601, allocations: 1.102 MB / 0.9297 GB, free: 76.89 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007356/2.608, allocations: 5.2 MB / 0.9348 GB, free: 75.61 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005544/2.614, allocations: 311.8 kB / 0.9351 GB, free: 75.61 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001235/2.615, allocations: 274 kB / 0.9354 GB, free: 75.61 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 384 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (583): * Single equations (assignments): 580 * 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: 1 * 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: 1 {(4,100.0%) 32} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001228/2.616, allocations: 442.1 kB / 0.9358 GB, free: 75.5 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001242/2.617, allocations: 391.7 kB / 0.9362 GB, free: 75.5 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008111/2.625, allocations: 4.202 MB / 0.9403 GB, free: 75.32 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.622e-05/2.625, allocations: 27.14 kB / 0.9403 GB, free: 75.32 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.539e-05/2.625, allocations: 6.812 kB / 0.9403 GB, free: 75.32 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.629e-05/2.626, allocations: 14.34 kB / 0.9403 GB, free: 75.32 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03003/2.656, allocations: 14.15 MB / 0.9541 GB, free: 74.33 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.886e-05/2.656, allocations: 10.59 kB / 0.9541 GB, free: 74.33 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002122/2.658, allocations: 468.7 kB / 0.9546 GB, free: 74.33 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002563/2.66, allocations: 0.6909 MB / 0.9553 GB, free: 74.3 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005854/2.661, allocations: 71.28 kB / 0.9553 GB, free: 74.3 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01039/2.671, allocations: 6.927 MB / 0.9621 GB, free: 71.75 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001622/2.673, allocations: 1.864 MB / 0.9639 GB, free: 70.37 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01534/2.688, allocations: 7.733 MB / 0.9715 GB, free: 67.94 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003474/2.692, allocations: 0.7954 MB / 0.9722 GB, free: 67.64 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0014/2.693, allocations: 60.25 kB / 0.9723 GB, free: 67.64 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002665/2.696, allocations: 171.8 kB / 0.9725 GB, free: 67.64 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000537/2.697, allocations: 216.7 kB / 0.9727 GB, free: 67.64 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002341/2.697, allocations: 85.7 kB / 0.9727 GB, free: 67.64 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.005941/2.703, allocations: 2.441 MB / 0.9751 GB, free: 67.43 MB / 490.7 MB Notification: Performance of sort global known variables: time 3.1e-07/2.703, allocations: 0 / 0.9751 GB, free: 67.43 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.00937/2.712, allocations: 1.364 MB / 0.9765 GB, free: 67.43 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 46 * 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 (238): * Single equations (assignments): 235 * 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: 1 {(4,100.0%) 32} * Non-linear torn systems: 1 {3 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.0133/2.726, allocations: 11.38 MB / 0.9876 GB, free: 62.12 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.008648/2.734, allocations: 4.997 MB / 0.9925 GB, free: 61.71 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 2.285e-05/2.734, allocations: 3.969 kB / 0.9925 GB, free: 61.71 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00399/2.738, allocations: 2.344 MB / 0.9948 GB, free: 61.33 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005477/2.744, allocations: 0.926 MB / 0.9957 GB, free: 61.31 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03179/2.776, allocations: 12.64 MB / 1.008 GB, free: 56.41 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005483/2.781, allocations: 4.624 MB / 1.013 GB, free: 54.71 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.004811/2.786, allocations: 1.396 MB / 1.014 GB, free: 54.56 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003707/2.79, allocations: 2.532 MB / 1.016 GB, free: 52.47 MB / 490.7 MB Notification: Performance of SimCode: time 2.365e-06/2.79, allocations: 0 / 1.016 GB, free: 52.47 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4786/3.268, allocations: 108.9 MB / 1.123 GB, free: 64.79 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002334/3.269, allocations: 241.2 kB / 1.123 GB, free: 64.46 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.364/8.633, allocations: 0.5938 kB / 1.123 GB, free: 64.46 MB / 490.7 MB (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_OpenCircuit_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_OpenCircuit.fmu > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit_res.mat does not exist to compare? outputFormat=mat