Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.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.SMR_CurrentSource,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007844/0.0007844, allocations: 95.44 kB / 17 MB, free: 6.348 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008848/0.0008849, allocations: 193.3 kB / 17.91 MB, free: 5.906 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.404/1.404, allocations: 227.3 MB / 246 MB, free: 11.98 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002587/0.0002588, allocations: 4 kB / 306.9 MB, free: 1.438 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1031/0.1034, allocations: 51.48 MB / 358.3 MB, free: 13.95 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.267/0.3705, allocations: 35.01 MB / 393.3 MB, free: 2.043 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02749/0.398, allocations: 9.881 MB / 403.2 MB, free: 10.73 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0105/0.4086, allocations: 284.1 kB / 403.5 MB, free: 10.67 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007817/0.4164, allocations: 1.654 MB / 405.2 MB, free: 9.855 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01572/0.4322, allocations: 2.804 MB / 408 MB, free: 7.715 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006496/0.4387, allocations: 1.56 MB / 409.5 MB, free: 6.539 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.02033/0.459, allocations: 13.85 MB / 423.4 MB, free: 11.73 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03833/0.4974, allocations: 19.91 MB / 443.3 MB, free: 7.73 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008995/0.5064, allocations: 4.812 MB / 448.1 MB, free: 2.902 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01115/0.5176, allocations: 5.669 MB / 453.8 MB, free: 13.21 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003331/0.521, allocations: 0.7617 MB / 454.5 MB, free: 12.45 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006049/0.527, allocations: 1.14 MB / 455.7 MB, free: 11.31 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004406/0.5315, allocations: 2.46 MB / 458.1 MB, free: 8.84 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005808/0.5373, allocations: 2.519 MB / 460.6 MB, free: 6.309 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02571/0.5631, allocations: 21.71 MB / 482.4 MB, free: 0.5391 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.5631, allocations: 0 / 482.4 MB, free: 0.5391 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.093e-06/0.5631, allocations: 0 / 482.4 MB, free: 0.5391 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0007321/0.5639, allocations: 0 / 482.4 MB, free: 0.5391 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3329 * Number of variables: 3329 Notification: Performance of Generate backend data structure: time 0.03407/0.5979, allocations: 12.58 MB / 494.9 MB, free: 3.84 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.344e-05/0.598, allocations: 11.97 kB / 495 MB, free: 3.828 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006694/0.6047, allocations: 1.715 MB / 496.7 MB, free: 2.102 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03306/0.6378, allocations: 6.15 MB / 0.491 GB, free: 11.93 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01697/0.6548, allocations: 7.698 MB / 0.4985 GB, free: 4.152 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001113/0.656, allocations: 0.9149 MB / 0.4994 GB, free: 3.234 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004481/0.6605, allocations: 1.195 MB / 0.5006 GB, free: 2.039 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04858/0.7091, allocations: 18.56 MB / 0.5187 GB, free: 15.39 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006606/0.7098, allocations: 23.8 kB / 0.5188 GB, free: 15.36 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003967/0.7138, allocations: 0.4922 MB / 0.5192 GB, free: 14.87 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008065/0.7146, allocations: 0.6382 MB / 0.5199 GB, free: 14.23 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.4656/1.18, allocations: 16.66 MB / 0.5361 GB, free: 121.1 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1245/1.305, allocations: 59.72 MB / 0.5945 GB, free: 82.35 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02234/1.327, allocations: 33.15 MB / 0.6268 GB, free: 48.68 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006637/1.334, allocations: 3.756 MB / 0.6305 GB, free: 44.92 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01841/1.352, allocations: 8.885 MB / 0.6392 GB, free: 36 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.84e-05/1.352, allocations: 73.25 kB / 0.6392 GB, free: 35.92 MB / 446.1 MB Notification: Performance of pre-optimization done (n=349): time 6.262e-06/1.352, allocations: 0 / 0.6392 GB, free: 35.92 MB / 446.1 MB Notification: Performance of matching and sorting (n=389): time 0.03986/1.392, allocations: 18.47 MB / 0.6573 GB, free: 17.3 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.538e-05/1.392, allocations: 94.42 kB / 0.6574 GB, free: 17.2 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008609/1.401, allocations: 4.998 MB / 0.6622 GB, free: 12.2 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000719/1.402, allocations: 85.7 kB / 0.6623 GB, free: 12.11 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002948/1.405, allocations: 5.45 MB / 0.6676 GB, free: 6.629 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001367/1.406, allocations: 1.361 MB / 0.669 GB, free: 5.281 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006735/1.407, allocations: 136 kB / 0.6691 GB, free: 5.148 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0004306/1.407, allocations: 0.5675 MB / 0.6697 GB, free: 4.574 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004285/1.412, allocations: 2.883 MB / 0.6725 GB, free: 1.688 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006851/1.418, allocations: 5.851 MB / 0.6782 GB, free: 10.43 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007004/1.425, allocations: 4.199 MB / 0.6823 GB, free: 6.211 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.954e-05/1.426, allocations: 28 kB / 0.6823 GB, free: 6.184 MB / 462.1 MB Notification: Performance of matching and sorting (n=865) (initialization): time 0.02022/1.446, allocations: 9.797 MB / 0.6919 GB, free: 12.32 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001484/1.446, allocations: 48 kB / 0.6919 GB, free: 12.27 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002433/1.446, allocations: 104 kB / 0.692 GB, free: 12.17 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002722/1.449, allocations: 0.9464 MB / 0.693 GB, free: 11.21 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006854/1.456, allocations: 1.583 MB / 0.6945 GB, free: 9.621 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01325/1.469, allocations: 9.492 MB / 0.7038 GB, free: 15.72 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006429/1.476, allocations: 403.2 kB / 0.7042 GB, free: 15.33 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001482/1.477, allocations: 352 kB / 0.7045 GB, free: 14.98 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 455 * 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 (816): * Single equations (assignments): 811 * 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: 3 * 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: 3 {(1,100.0%) 1,(1,100.0%) 1,(8,62.5%) 38} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.009999/1.487, allocations: 4.254 MB / 0.7086 GB, free: 10.71 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001798/1.489, allocations: 0.5132 MB / 0.7091 GB, free: 10.2 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01374/1.503, allocations: 6.477 MB / 0.7155 GB, free: 3.668 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.857e-05/1.503, allocations: 44 kB / 0.7155 GB, free: 3.625 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.66e-05/1.503, allocations: 11.94 kB / 0.7155 GB, free: 3.613 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.099e-05/1.503, allocations: 19.92 kB / 0.7155 GB, free: 3.594 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2916/1.794, allocations: 15.69 MB / 0.7309 GB, free: 154.4 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.103e-05/1.795, allocations: 3.031 kB / 0.7309 GB, free: 154.4 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003847/1.798, allocations: 0.7507 MB / 0.7316 GB, free: 154.3 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00255/1.801, allocations: 0.7859 MB / 0.7324 GB, free: 154.1 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008715/1.802, allocations: 84.23 kB / 0.7325 GB, free: 154.1 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01053/1.812, allocations: 8.661 MB / 0.7409 GB, free: 148.1 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.24e-06/1.812, allocations: 5.969 kB / 0.7409 GB, free: 148.1 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01661/1.829, allocations: 9.459 MB / 0.7502 GB, free: 144.2 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003175/1.832, allocations: 1.072 MB / 0.7512 GB, free: 143.8 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001262/1.834, allocations: 68.94 kB / 0.7513 GB, free: 143.7 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002792/1.836, allocations: 228.5 kB / 0.7515 GB, free: 143.7 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005928/1.837, allocations: 263.6 kB / 0.7517 GB, free: 143.6 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002749/1.837, allocations: 117.2 kB / 0.7518 GB, free: 143.6 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.00613/1.843, allocations: 3.319 MB / 0.7551 GB, free: 142.4 MB / 494.1 MB Notification: Performance of sort global known variables: time 3.51e-07/1.843, allocations: 3.938 kB / 0.7551 GB, free: 142.4 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.01037/1.854, allocations: 1.883 MB / 0.7569 GB, free: 142.2 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 4 (inertiaLoad.w,quadraticSpeedDependentTorque.phi,inertiaLoadQS.w,quadraticSpeedDependentTorqueQS.phi) * 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 (368): * Single equations (assignments): 363 * 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: 3 * 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: 3 {(1,100.0%) 1,(8,59.4%) 38,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01554/1.869, allocations: 10.2 MB / 0.7669 GB, free: 136.2 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01232/1.882, allocations: 7.596 MB / 0.7743 GB, free: 129.5 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.039e-05/1.882, allocations: 4 kB / 0.7743 GB, free: 129.5 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00584/1.888, allocations: 3.548 MB / 0.7778 GB, free: 126.3 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008065/1.896, allocations: 1.251 MB / 0.779 GB, free: 125.3 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1272/2.023, allocations: 59.51 MB / 0.8371 GB, free: 64.68 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01977/2.043, allocations: 7.327 MB / 0.8443 GB, free: 57.32 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.01065/2.054, allocations: 2.156 MB / 0.8464 GB, free: 55.16 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008846/2.062, allocations: 4.325 MB / 0.8506 GB, free: 50.83 MB / 494.1 MB Notification: Performance of SimCode: time 1.703e-06/2.062, allocations: 0 / 0.8506 GB, free: 50.83 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4578/2.52, allocations: 143.6 MB / 0.9908 GB, free: 75.27 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001707/2.52, allocations: 275.2 kB / 0.9911 GB, free: 74.92 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.235/7.755, allocations: 3.938 kB / 0.9911 GB, free: 74.92 MB / 494.1 MB (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSource_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSource.fmu > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource_res.mat does not exist to compare? outputFormat=mat