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.0009554/0.0009556, allocations: 102.5 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009797/0.0009799, allocations: 207.9 kB / 17.9 MB, free: 5.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.329/1.329, allocations: 227.3 MB / 245.9 MB, free: 10.3 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002461/0.0002462, allocations: 8 kB / 306.7 MB, free: 1.254 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1204/0.1206, allocations: 51.5 MB / 358.2 MB, free: 13.75 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.2496/0.3703, allocations: 32.13 MB / 390.4 MB, free: 3.742 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02441/0.3947, allocations: 10.24 MB / 400.6 MB, free: 12.23 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0101/0.4049, allocations: 264.3 kB / 400.9 MB, free: 12.17 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00977/0.4147, allocations: 2.099 MB / 403 MB, free: 11.05 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01649/0.4312, allocations: 3.576 MB / 406.5 MB, free: 8.41 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008098/0.4393, allocations: 1.826 MB / 408.4 MB, free: 7.027 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.02149/0.4608, allocations: 10.08 MB / 418.5 MB, free: 260 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04321/0.504, allocations: 19.72 MB / 438.2 MB, free: 12.45 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01008/0.5142, allocations: 4.524 MB / 442.7 MB, free: 7.906 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01093/0.5251, allocations: 5.19 MB / 447.9 MB, free: 2.695 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003512/0.5287, allocations: 0.7539 MB / 448.6 MB, free: 1.941 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006039/0.5347, allocations: 1.093 MB / 449.7 MB, free: 0.8477 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004959/0.5397, allocations: 2.383 MB / 452.1 MB, free: 14.45 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006077/0.5458, allocations: 2.515 MB / 454.6 MB, free: 11.93 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0262/0.572, allocations: 21.66 MB / 476.3 MB, free: 6.215 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.898e-06/0.5721, allocations: 3.938 kB / 476.3 MB, free: 6.211 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.983e-06/0.5721, allocations: 4 kB / 476.3 MB, free: 6.207 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0007644/0.5728, allocations: 0 / 476.3 MB, free: 6.207 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.03781/0.6107, allocations: 12.54 MB / 488.8 MB, free: 9.551 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.905e-05/0.6107, allocations: 16.03 kB / 488.9 MB, free: 9.535 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006688/0.6174, allocations: 1.707 MB / 490.6 MB, free: 7.816 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03401/0.6515, allocations: 6.049 MB / 496.6 MB, free: 1.746 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02039/0.6719, allocations: 7.725 MB / 0.4925 GB, free: 9.938 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001298/0.6733, allocations: 0.9147 MB / 0.4934 GB, free: 9.023 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005317/0.6786, allocations: 1.195 MB / 0.4946 GB, free: 7.828 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05172/0.7303, allocations: 18.46 MB / 0.5126 GB, free: 5.273 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006915/0.7311, allocations: 19.8 kB / 0.5126 GB, free: 5.254 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004449/0.7356, allocations: 0.4921 MB / 0.5131 GB, free: 4.762 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008774/0.7365, allocations: 0.642 MB / 0.5137 GB, free: 4.117 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04368/0.7802, allocations: 16.67 MB / 0.53 GB, free: 3.426 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5639/1.344, allocations: 59.68 MB / 0.5883 GB, free: 86.02 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02304/1.367, allocations: 33.15 MB / 0.6207 GB, free: 53.52 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01647/1.384, allocations: 8.953 MB / 0.6294 GB, free: 45.57 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.086e-05/1.384, allocations: 69.39 kB / 0.6295 GB, free: 45.5 MB / 446.1 MB Notification: Performance of pre-optimization done (n=359): time 5.651e-06/1.384, allocations: 4 kB / 0.6295 GB, free: 45.49 MB / 446.1 MB Notification: Performance of matching and sorting (n=399): time 0.03249/1.416, allocations: 17.58 MB / 0.6466 GB, free: 27.78 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.616e-05/1.416, allocations: 94.55 kB / 0.6467 GB, free: 27.67 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006711/1.423, allocations: 4.951 MB / 0.6516 GB, free: 22.73 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007964/1.424, allocations: 85.7 kB / 0.6516 GB, free: 22.64 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002546/1.427, allocations: 5.443 MB / 0.657 GB, free: 17.16 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001389/1.428, allocations: 1.38 MB / 0.6583 GB, free: 15.79 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003293/1.428, allocations: 136 kB / 0.6584 GB, free: 15.66 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0002612/1.429, allocations: 0.5754 MB / 0.659 GB, free: 15.08 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003818/1.432, allocations: 2.914 MB / 0.6619 GB, free: 12.16 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005071/1.437, allocations: 5.829 MB / 0.6675 GB, free: 4.941 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005555/1.443, allocations: 4.223 MB / 0.6717 GB, free: 0.6953 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.667e-05/1.443, allocations: 31.95 kB / 0.6717 GB, free: 0.6641 MB / 446.1 MB Notification: Performance of matching and sorting (n=871) (initialization): time 0.0223/1.465, allocations: 9.842 MB / 0.6813 GB, free: 6.75 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001736/1.466, allocations: 48 kB / 0.6814 GB, free: 6.703 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001865/1.466, allocations: 96 kB / 0.6814 GB, free: 6.609 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002728/1.469, allocations: 0.9432 MB / 0.6824 GB, free: 5.652 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006604/1.475, allocations: 1.599 MB / 0.6839 GB, free: 4.055 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01266/1.488, allocations: 9.685 MB / 0.6934 GB, free: 9.969 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006229/1.494, allocations: 411.2 kB / 0.6938 GB, free: 9.566 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001371/1.496, allocations: 355.9 kB / 0.6941 GB, free: 9.219 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 451 * 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 (822): * Single equations (assignments): 817 * 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,59.4%) 38} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00874/1.504, allocations: 4.257 MB / 0.6983 GB, free: 4.949 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001356/1.506, allocations: 0.517 MB / 0.6988 GB, free: 4.426 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01164/1.517, allocations: 6.563 MB / 0.7052 GB, free: 13.82 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.19e-05/1.517, allocations: 47.94 kB / 0.7052 GB, free: 13.77 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.696e-05/1.517, allocations: 11.95 kB / 0.7052 GB, free: 13.76 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.544e-05/1.518, allocations: 19.92 kB / 0.7053 GB, free: 13.74 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2577/1.775, allocations: 15.85 MB / 0.7207 GB, free: 155.9 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.201e-05/1.775, allocations: 5.906 kB / 0.7208 GB, free: 155.9 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004083/1.779, allocations: 0.764 MB / 0.7215 GB, free: 155.9 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002411/1.782, allocations: 0.7863 MB / 0.7223 GB, free: 155.9 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006935/1.783, allocations: 85.86 kB / 0.7223 GB, free: 155.9 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00943/1.792, allocations: 8.846 MB / 0.731 GB, free: 151.5 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.201e-06/1.792, allocations: 4.891 kB / 0.731 GB, free: 151.5 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01618/1.808, allocations: 9.97 MB / 0.7407 GB, free: 147.1 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003029/1.811, allocations: 1.085 MB / 0.7418 GB, free: 146.7 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001149/1.812, allocations: 75.38 kB / 0.7419 GB, free: 146.7 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002676/1.815, allocations: 232.9 kB / 0.7421 GB, free: 146.6 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000557/1.816, allocations: 266.8 kB / 0.7423 GB, free: 146.6 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000261/1.816, allocations: 117.5 kB / 0.7424 GB, free: 146.5 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.005428/1.821, allocations: 3.295 MB / 0.7457 GB, free: 145.3 MB / 494.1 MB Notification: Performance of sort global known variables: time 3.11e-07/1.821, allocations: 3.906 kB / 0.7457 GB, free: 145.3 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.008479/1.83, allocations: 1.887 MB / 0.7475 GB, free: 145.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 (378): * Single equations (assignments): 373 * 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.01578/1.846, allocations: 11.3 MB / 0.7585 GB, free: 139.6 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01041/1.856, allocations: 7.675 MB / 0.766 GB, free: 135.6 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 6.232e-06/1.856, allocations: 0 / 0.766 GB, free: 135.6 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005087/1.861, allocations: 3.594 MB / 0.7695 GB, free: 132.4 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005612/1.867, allocations: 1.179 MB / 0.7707 GB, free: 131.4 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1164/1.983, allocations: 127 MB / 0.8947 GB, free: 3.902 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2502/2.234, allocations: 7.52 MB / 0.9021 GB, free: 158.2 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.009789/2.243, allocations: 2.158 MB / 0.9042 GB, free: 158 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008232/2.252, allocations: 4.279 MB / 0.9083 GB, free: 156.5 MB / 494.1 MB Notification: Performance of SimCode: time 6.81e-07/2.252, allocations: 0 / 0.9083 GB, free: 156.5 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1829/2.435, allocations: 143.5 MB / 1.048 GB, free: 34 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001453/2.435, allocations: 267.9 kB / 1.049 GB, free: 33.64 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.253/7.688, allocations: 0 / 1.049 GB, free: 33.64 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