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.SMR_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource,fileNamePrefix="Modelica_3_2_3_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_3_2_3_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 4.0.0+maint.om/package.mo): time 0.0008764/0.0008764, allocations: 100 kB / 16.94 MB, free: 6.441 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.000909/0.0009091, allocations: 183.9 kB / 17.83 MB, free: 6.008 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.406/1.406, allocations: 205.4 MB / 224 MB, free: 13.17 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004625/0.0004629, allocations: 16 kB / 280.9 MB, free: 3.625 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09915/0.09963, allocations: 47.57 MB / 328.4 MB, free: 3.988 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.03524/0.1349, allocations: 32.07 MB / 360.5 MB, free: 3.809 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02507/0.1601, allocations: 10.18 MB / 370.7 MB, free: 9.602 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009201/0.1693, allocations: 239.1 kB / 370.9 MB, free: 9.367 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009994/0.1794, allocations: 2.11 MB / 373 MB, free: 7.246 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01644/0.1959, allocations: 3.662 MB / 376.7 MB, free: 3.574 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008413/0.2043, allocations: 1.817 MB / 378.5 MB, free: 1.758 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.231/0.4354, allocations: 10.3 MB / 388.8 MB, free: 11.08 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04061/0.476, allocations: 19.78 MB / 408.6 MB, free: 8.547 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01229/0.4884, allocations: 4.679 MB / 413.3 MB, free: 8.27 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01119/0.4996, allocations: 5.419 MB / 418.7 MB, free: 6.164 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004179/0.5039, allocations: 0.7734 MB / 419.5 MB, free: 5.391 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006787/0.5107, allocations: 1.082 MB / 420.6 MB, free: 4.41 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005267/0.516, allocations: 2.544 MB / 423.1 MB, free: 3.277 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0063/0.5223, allocations: 2.598 MB / 425.7 MB, free: 2.312 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02708/0.5494, allocations: 22.04 MB / 447.7 MB, free: 15.4 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.918e-06/0.5495, allocations: 0 / 447.7 MB, free: 15.4 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.816e-06/0.5495, allocations: 0 / 447.7 MB, free: 15.4 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.000763/0.5503, allocations: 0 / 447.7 MB, free: 15.4 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: 3512 * Number of variables: 3512 Notification: Performance of Generate backend data structure: time 0.03645/0.5867, allocations: 12.94 MB / 460.7 MB, free: 3.848 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.05e-05/0.5868, allocations: 8.031 kB / 460.7 MB, free: 3.84 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00832/0.5951, allocations: 1.797 MB / 462.5 MB, free: 2.156 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05076/0.6459, allocations: 9.034 MB / 471.5 MB, free: 9.203 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02178/0.6677, allocations: 7.384 MB / 478.9 MB, free: 2.164 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001182/0.669, allocations: 0.9454 MB / 479.8 MB, free: 1.23 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005216/0.6742, allocations: 1.249 MB / 481.1 MB, free: 0 / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0578/0.732, allocations: 19.95 MB / 0.4893 GB, free: 12.02 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001097/0.7332, allocations: 27.8 kB / 0.4893 GB, free: 11.99 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006281/0.7395, allocations: 0.5079 MB / 0.4898 GB, free: 11.5 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008844/0.7404, allocations: 0.7332 MB / 0.4905 GB, free: 10.76 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04776/0.7882, allocations: 18.88 MB / 0.509 GB, free: 7.879 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.499/1.287, allocations: 63.54 MB / 0.571 GB, free: 92.57 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03068/1.318, allocations: 56.91 MB / 0.6266 GB, free: 34.84 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01928/1.337, allocations: 11.52 MB / 0.6378 GB, free: 27.27 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.844e-05/1.337, allocations: 75.78 kB / 0.6379 GB, free: 27.2 MB / 430.1 MB Notification: Performance of pre-optimization done (n=359): time 5.61e-06/1.337, allocations: 1.969 kB / 0.6379 GB, free: 27.2 MB / 430.1 MB Notification: Performance of matching and sorting (n=399): time 0.03023/1.368, allocations: 17.57 MB / 0.6551 GB, free: 15.38 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.756e-05/1.368, allocations: 94.55 kB / 0.6552 GB, free: 15.28 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006853/1.375, allocations: 5.379 MB / 0.6604 GB, free: 9.922 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005429/1.375, allocations: 93.64 kB / 0.6605 GB, free: 9.824 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002356/1.378, allocations: 5.869 MB / 0.6662 GB, free: 3.926 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001032/1.379, allocations: 1.406 MB / 0.6676 GB, free: 2.531 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003123/1.379, allocations: 156 kB / 0.6678 GB, free: 2.379 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0002722/1.379, allocations: 0.6087 MB / 0.6684 GB, free: 1.766 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004176/1.383, allocations: 3.08 MB / 0.6714 GB, free: 14.68 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007146/1.39, allocations: 6.705 MB / 0.6779 GB, free: 6.227 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007042/1.398, allocations: 4.585 MB / 0.6824 GB, free: 1.621 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.482e-05/1.398, allocations: 36 kB / 0.6824 GB, free: 1.586 MB / 446.1 MB Notification: Performance of matching and sorting (n=988) (initialization): time 0.02069/1.418, allocations: 10.79 MB / 0.693 GB, free: 6.738 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.287e-05/1.419, allocations: 60 kB / 0.693 GB, free: 6.68 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001943/1.419, allocations: 124 kB / 0.6931 GB, free: 6.559 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002372/1.421, allocations: 0.9834 MB / 0.6941 GB, free: 5.562 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006343/1.427, allocations: 1.825 MB / 0.6959 GB, free: 3.734 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01259/1.44, allocations: 9.742 MB / 0.7054 GB, free: 9.586 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006245/1.446, allocations: 439.3 kB / 0.7058 GB, free: 9.156 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00148/1.448, allocations: 420 kB / 0.7062 GB, free: 8.746 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 568 * 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 (939): * Single equations (assignments): 934 * 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,65.6%) 38} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.009238/1.457, allocations: 4.459 MB / 0.7106 GB, free: 4.273 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001405/1.459, allocations: 0.5518 MB / 0.7111 GB, free: 3.715 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2384/1.697, allocations: 6.597 MB / 0.7175 GB, free: 157.6 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.662e-05/1.697, allocations: 46.34 kB / 0.7176 GB, free: 157.6 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.863e-05/1.697, allocations: 7.656 kB / 0.7176 GB, free: 157.6 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001005/1.697, allocations: 20.44 kB / 0.7176 GB, free: 157.6 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03564/1.733, allocations: 16.1 MB / 0.7333 GB, free: 153.8 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.407e-05/1.733, allocations: 3.969 kB / 0.7333 GB, free: 153.8 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00305/1.736, allocations: 0.7786 MB / 0.7341 GB, free: 153.7 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00191/1.738, allocations: 0.7808 MB / 0.7349 GB, free: 153.5 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002943/1.738, allocations: 86.44 kB / 0.7349 GB, free: 153.5 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00821/1.746, allocations: 8.846 MB / 0.7436 GB, free: 147.4 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.797e-06/1.746, allocations: 3.969 kB / 0.7436 GB, free: 147.4 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01409/1.76, allocations: 10.04 MB / 0.7534 GB, free: 143 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003153/1.764, allocations: 1.114 MB / 0.7545 GB, free: 142.6 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001036/1.765, allocations: 75.22 kB / 0.7546 GB, free: 142.5 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002558/1.767, allocations: 228 kB / 0.7548 GB, free: 142.5 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005219/1.768, allocations: 270.7 kB / 0.755 GB, free: 142.4 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002386/1.768, allocations: 114.1 kB / 0.7551 GB, free: 142.4 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.006403/1.774, allocations: 3.53 MB / 0.7586 GB, free: 141.1 MB / 478.1 MB Notification: Performance of sort global known variables: time 3.41e-07/1.775, allocations: 0 / 0.7586 GB, free: 141.1 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.01217/1.787, allocations: 1.988 MB / 0.7605 GB, free: 141 MB / 478.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,(1,100.0%) 1,(8,65.6%) 38} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01883/1.806, allocations: 11.32 MB / 0.7716 GB, free: 131.5 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.01263/1.818, allocations: 8.086 MB / 0.7795 GB, free: 123.4 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 7.414e-06/1.818, allocations: 0 / 0.7795 GB, free: 123.4 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00563/1.824, allocations: 3.576 MB / 0.783 GB, free: 119.8 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006262/1.83, allocations: 1.188 MB / 0.7841 GB, free: 118.6 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.348/2.178, allocations: 148.4 MB / 0.929 GB, free: 143.3 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008611/2.187, allocations: 7.799 MB / 0.9367 GB, free: 140.6 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.007384/2.194, allocations: 2.359 MB / 0.939 GB, free: 139.6 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007209/2.202, allocations: 4.49 MB / 0.9434 GB, free: 135.5 MB / 478.1 MB Notification: Performance of SimCode: time 1.422e-06/2.202, allocations: 0 / 0.9434 GB, free: 135.5 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3852/2.587, allocations: 149.1 MB / 1.089 GB, free: 122.4 MB / 478.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001509/2.587, allocations: 263.5 kB / 1.089 GB, free: 122.1 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.392/7.979, allocations: 3.438 kB / 1.089 GB, free: 122.1 MB / 478.1 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSource_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSource.fmu > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource_res.mat does not exist to compare? outputFormat=mat