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/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_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/ModelicaServices trunk/package.mo): time 0.001011/0.001011, allocations: 98.05 kB / 16.99 MB, free: 6.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001017/0.001017, allocations: 198.1 kB / 17.89 MB, free: 5.945 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.374/1.374, allocations: 227.3 MB / 245.9 MB, free: 10.32 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002118/0.0002118, allocations: 8 kB / 306.7 MB, free: 1.27 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1071/0.1074, allocations: 51.49 MB / 358.2 MB, free: 13.79 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit): time 0.2576/0.365, allocations: 24.71 MB / 382.9 MB, free: 8.949 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02186/0.3869, allocations: 8.551 MB / 391.5 MB, free: 2.859 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01243/0.3994, allocations: 165.6 kB / 391.6 MB, free: 2.828 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009833/0.4093, allocations: 1.605 MB / 393.3 MB, free: 1.996 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01765/0.427, allocations: 3.157 MB / 396.4 MB, free: 15.92 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008696/0.4357, allocations: 1.319 MB / 397.7 MB, free: 15.13 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0186/0.4543, allocations: 7.358 MB / 405.1 MB, free: 11.12 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02252/0.4768, allocations: 9.917 MB / 415 MB, free: 3.715 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006954/0.4838, allocations: 2.908 MB / 417.9 MB, free: 0.7969 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00658/0.4904, allocations: 3.261 MB / 421.2 MB, free: 13.52 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001415/0.4919, allocations: 468 kB / 421.6 MB, free: 13.06 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003571/0.4954, allocations: 0.7689 MB / 422.4 MB, free: 12.29 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001365/0.4968, allocations: 1.499 MB / 423.9 MB, free: 10.79 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002632/0.4995, allocations: 1.584 MB / 425.5 MB, free: 9.195 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01495/0.5144, allocations: 13.13 MB / 438.6 MB, free: 12.03 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.987e-06/0.5145, allocations: 0 / 438.6 MB, free: 12.03 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.965e-06/0.5145, allocations: 0 / 438.6 MB, free: 12.03 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0004748/0.515, allocations: 0 / 438.6 MB, free: 12.03 MB / 350.1 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.02762/0.5426, allocations: 8.23 MB / 446.8 MB, free: 3.707 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.289e-05/0.5427, allocations: 8.031 kB / 446.9 MB, free: 3.699 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007102/0.5498, allocations: 1.148 MB / 448 MB, free: 2.539 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03034/0.5802, allocations: 5.18 MB / 453.2 MB, free: 13.34 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01285/0.5931, allocations: 4.942 MB / 458.1 MB, free: 8.32 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005645/0.5936, allocations: 0.5299 MB / 458.7 MB, free: 7.789 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003068/0.5967, allocations: 0.7068 MB / 459.4 MB, free: 7.082 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03205/0.6288, allocations: 11.2 MB / 470.6 MB, free: 11.8 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002514/0.6291, allocations: 19.75 kB / 470.6 MB, free: 11.78 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001514/0.6306, allocations: 304 kB / 470.9 MB, free: 11.48 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004361/0.631, allocations: 443 kB / 471.3 MB, free: 11.05 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02541/0.6564, allocations: 10.77 MB / 482.1 MB, free: 276 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07662/0.7331, allocations: 38.94 MB / 0.5088 GB, free: 8.012 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.287/1.02, allocations: 28.22 MB / 0.5364 GB, free: 105 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01878/1.039, allocations: 8.436 MB / 0.5446 GB, free: 102.4 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.087e-05/1.039, allocations: 58.08 kB / 0.5447 GB, free: 102.4 MB / 446.1 MB Notification: Performance of pre-optimization done (n=222): time 4.348e-06/1.039, allocations: 0 / 0.5447 GB, free: 102.4 MB / 446.1 MB Notification: Performance of matching and sorting (n=238): time 0.02176/1.061, allocations: 10.41 MB / 0.5548 GB, free: 97.82 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00167/1.063, allocations: 1.93 MB / 0.5567 GB, free: 96.08 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005701/1.068, allocations: 3.703 MB / 0.5603 GB, free: 94.63 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002853/1.069, allocations: 65.55 kB / 0.5604 GB, free: 94.57 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001903/1.071, allocations: 3.567 MB / 0.5639 GB, free: 91.86 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007353/1.071, allocations: 0.8453 MB / 0.5647 GB, free: 91.21 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001992/1.071, allocations: 99.78 kB / 0.5648 GB, free: 91.14 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0002109/1.072, allocations: 0.5044 MB / 0.5653 GB, free: 90.75 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002444/1.074, allocations: 1.893 MB / 0.5671 GB, free: 90.02 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003675/1.078, allocations: 4.431 MB / 0.5715 GB, free: 85.87 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003333/1.081, allocations: 2.846 MB / 0.5742 GB, free: 84.57 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.669e-05/1.081, allocations: 27.72 kB / 0.5743 GB, free: 84.57 MB / 446.1 MB Notification: Performance of matching and sorting (n=640) (initialization): time 0.009919/1.091, allocations: 7.034 MB / 0.5811 GB, free: 81.66 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.208e-05/1.091, allocations: 43.41 kB / 0.5812 GB, free: 81.66 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001159/1.091, allocations: 88.28 kB / 0.5813 GB, free: 81.66 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001775/1.093, allocations: 0.7542 MB / 0.582 GB, free: 81.5 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003285/1.096, allocations: 1.139 MB / 0.5831 GB, free: 81.37 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005895/1.102, allocations: 5.369 MB / 0.5883 GB, free: 78.29 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004583/1.107, allocations: 320.4 kB / 0.5887 GB, free: 78.16 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005123/1.107, allocations: 291.8 kB / 0.5889 GB, free: 77.91 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 403 * 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 (603): * Single equations (assignments): 600 * 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.0053/1.113, allocations: 2.53 MB / 0.5914 GB, free: 75.68 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001048/1.114, allocations: 388.9 kB / 0.5918 GB, free: 75.3 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00634/1.12, allocations: 4.307 MB / 0.596 GB, free: 70.95 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.52e-05/1.12, allocations: 24 kB / 0.596 GB, free: 70.93 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.899e-06/1.12, allocations: 8 kB / 0.596 GB, free: 70.92 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2e-05/1.12, allocations: 15.95 kB / 0.596 GB, free: 70.91 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02155/1.142, allocations: 14.34 MB / 0.61 GB, free: 56.36 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-05/1.142, allocations: 12.94 kB / 0.61 GB, free: 56.35 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001713/1.144, allocations: 499.2 kB / 0.6105 GB, free: 55.86 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001729/1.145, allocations: 0.6904 MB / 0.6112 GB, free: 55.16 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001427/1.145, allocations: 67.98 kB / 0.6113 GB, free: 55.1 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007076/1.153, allocations: 7.091 MB / 0.6182 GB, free: 47.74 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001401/1.154, allocations: 1.884 MB / 0.62 GB, free: 45.72 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0096/1.164, allocations: 8.128 MB / 0.628 GB, free: 36.89 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002239/1.166, allocations: 0.7966 MB / 0.6287 GB, free: 36.07 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005634/1.166, allocations: 63.98 kB / 0.6288 GB, free: 36.01 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001716/1.168, allocations: 175.9 kB / 0.629 GB, free: 35.84 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004096/1.169, allocations: 225.4 kB / 0.6292 GB, free: 35.62 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001547/1.169, allocations: 91.98 kB / 0.6293 GB, free: 35.53 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003336/1.172, allocations: 2.4 MB / 0.6316 GB, free: 33.12 MB / 446.1 MB Notification: Performance of sort global known variables: time 3e-07/1.172, allocations: 4 kB / 0.6316 GB, free: 33.11 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005856/1.178, allocations: 1.296 MB / 0.6329 GB, free: 31.82 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 52 * Number of states: 1 ($STATESET1.x) * 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 (249): * Single equations (assignments): 246 * 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.009838/1.188, allocations: 11.62 MB / 0.6442 GB, free: 19.7 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007614/1.195, allocations: 5.165 MB / 0.6493 GB, free: 14.48 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.659e-05/1.195, allocations: 4 kB / 0.6493 GB, free: 14.48 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003299/1.199, allocations: 2.421 MB / 0.6516 GB, free: 12.02 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005574/1.204, allocations: 0.9264 MB / 0.6525 GB, free: 11.11 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3348/1.539, allocations: 98.65 MB / 0.7489 GB, free: 142.5 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005497/1.545, allocations: 4.632 MB / 0.7534 GB, free: 140.9 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.004429/1.549, allocations: 1.365 MB / 0.7547 GB, free: 140.8 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004008/1.553, allocations: 2.573 MB / 0.7573 GB, free: 138.7 MB / 494.1 MB Notification: Performance of SimCode: time 1.112e-06/1.553, allocations: 2.75 kB / 0.7573 GB, free: 138.7 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7288/2.282, allocations: 100.8 MB / 0.8557 GB, free: 46.04 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001702/2.282, allocations: 289.9 kB / 0.856 GB, free: 45.68 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.625/6.907, allocations: 0 / 0.856 GB, free: 45.68 MB / 494.1 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