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.001028/0.001027, allocations: 100.6 kB / 16.95 MB, free: 6.453 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.001078/0.001078, allocations: 184.1 kB / 17.84 MB, free: 6.004 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.543/1.543, allocations: 205.4 MB / 224 MB, free: 13.15 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.0005423/0.0005424, allocations: 12 kB / 280.9 MB, free: 3.602 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1081/0.1086, allocations: 47.57 MB / 328.5 MB, free: 3.957 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.04242/0.1511, allocations: 34.96 MB / 363.4 MB, free: 0.8711 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02684/0.178, allocations: 9.801 MB / 373.2 MB, free: 7.047 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009897/0.1879, allocations: 247.1 kB / 373.5 MB, free: 6.805 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008671/0.1966, allocations: 1.681 MB / 375.2 MB, free: 5.113 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01582/0.2125, allocations: 2.997 MB / 378.2 MB, free: 2.102 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007114/0.2196, allocations: 1.563 MB / 379.7 MB, free: 0.5352 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.2454/0.4651, allocations: 14.34 MB / 394.1 MB, free: 11.5 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04182/0.5069, allocations: 19.97 MB / 414 MB, free: 8.332 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01315/0.5202, allocations: 5.003 MB / 419 MB, free: 5.762 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01407/0.5343, allocations: 5.975 MB / 425 MB, free: 1.289 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005632/0.54, allocations: 0.7734 MB / 425.8 MB, free: 0.5156 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01037/0.5504, allocations: 1.129 MB / 426.9 MB, free: 15.48 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00725/0.5578, allocations: 2.627 MB / 429.5 MB, free: 13.84 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009738/0.5676, allocations: 2.597 MB / 432.1 MB, free: 12.48 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03434/0.6019, allocations: 22.1 MB / 454.2 MB, free: 8.238 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.296e-06/0.602, allocations: 0 / 454.2 MB, free: 8.238 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.807e-06/0.602, allocations: 0 / 454.2 MB, free: 8.238 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.00111/0.6031, allocations: 0 / 454.2 MB, free: 8.238 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.04/0.6431, allocations: 12.99 MB / 467.2 MB, free: 11.32 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.137e-05/0.6432, allocations: 8.031 kB / 467.2 MB, free: 11.31 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007264/0.6505, allocations: 1.805 MB / 469 MB, free: 9.512 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04789/0.6984, allocations: 9.132 MB / 478.2 MB, free: 468 kB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01741/0.7159, allocations: 7.351 MB / 485.5 MB, free: 9.125 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0012/0.7171, allocations: 0.9573 MB / 486.5 MB, free: 8.18 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006643/0.7238, allocations: 1.247 MB / 487.7 MB, free: 6.949 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06091/0.7847, allocations: 20.06 MB / 0.4959 GB, free: 2.859 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007395/0.7855, allocations: 27.8 kB / 0.4959 GB, free: 2.832 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004574/0.7901, allocations: 0.5081 MB / 0.4964 GB, free: 2.336 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009833/0.7911, allocations: 0.7333 MB / 0.4971 GB, free: 1.602 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04743/0.8386, allocations: 18.87 MB / 0.5156 GB, free: 14.71 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4967/1.335, allocations: 63.56 MB / 0.5776 GB, free: 90.46 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03495/1.37, allocations: 56.92 MB / 0.6332 GB, free: 32.72 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00814/1.378, allocations: 4.112 MB / 0.6372 GB, free: 30.64 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01888/1.397, allocations: 11.4 MB / 0.6484 GB, free: 20.71 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.502e-05/1.397, allocations: 73.31 kB / 0.6484 GB, free: 20.63 MB / 430.1 MB Notification: Performance of pre-optimization done (n=349): time 4.959e-06/1.397, allocations: 4 kB / 0.6484 GB, free: 20.62 MB / 430.1 MB Notification: Performance of matching and sorting (n=389): time 0.03699/1.434, allocations: 19.09 MB / 0.6671 GB, free: 1.41 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.687e-05/1.435, allocations: 92.11 kB / 0.6672 GB, free: 1.309 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008218/1.443, allocations: 5.423 MB / 0.6725 GB, free: 11.91 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006052/1.443, allocations: 89.7 kB / 0.6725 GB, free: 11.82 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.004403/1.448, allocations: 5.88 MB / 0.6783 GB, free: 5.906 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001663/1.449, allocations: 1.374 MB / 0.6796 GB, free: 4.543 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004212/1.45, allocations: 156 kB / 0.6798 GB, free: 4.391 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0004357/1.45, allocations: 0.6125 MB / 0.6804 GB, free: 3.773 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005183/1.456, allocations: 3.052 MB / 0.6834 GB, free: 0.7188 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007562/1.463, allocations: 6.727 MB / 0.6899 GB, free: 8.223 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007001/1.47, allocations: 4.565 MB / 0.6944 GB, free: 3.637 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.412e-05/1.47, allocations: 36 kB / 0.6944 GB, free: 3.602 MB / 462.1 MB Notification: Performance of matching and sorting (n=982) (initialization): time 0.01898/1.489, allocations: 10.74 MB / 0.7049 GB, free: 8.801 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.406e-05/1.489, allocations: 60 kB / 0.705 GB, free: 8.742 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001919/1.49, allocations: 124 kB / 0.7051 GB, free: 8.621 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002353/1.492, allocations: 0.9976 MB / 0.7061 GB, free: 7.609 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0064/1.498, allocations: 1.816 MB / 0.7078 GB, free: 5.793 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2203/1.719, allocations: 9.514 MB / 0.7171 GB, free: 153.9 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007461/1.726, allocations: 441.8 kB / 0.7175 GB, free: 153.9 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002657/1.729, allocations: 418.1 kB / 0.7179 GB, free: 153.9 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 572 * 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 (933): * Single equations (assignments): 928 * 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.01026/1.739, allocations: 4.461 MB / 0.7223 GB, free: 153.8 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002021/1.741, allocations: 0.5462 MB / 0.7228 GB, free: 153.8 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01226/1.753, allocations: 6.508 MB / 0.7292 GB, free: 152.1 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.865e-05/1.754, allocations: 38.97 kB / 0.7292 GB, free: 152.1 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.956e-05/1.754, allocations: 13.05 kB / 0.7292 GB, free: 152.1 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.324e-05/1.754, allocations: 20.58 kB / 0.7293 GB, free: 152.1 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03209/1.786, allocations: 15.94 MB / 0.7448 GB, free: 145.7 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.659e-05/1.786, allocations: 5.094 kB / 0.7448 GB, free: 145.7 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004914/1.791, allocations: 0.7578 MB / 0.7456 GB, free: 145.6 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003212/1.794, allocations: 0.7858 MB / 0.7463 GB, free: 145.4 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007604/1.795, allocations: 89.08 kB / 0.7464 GB, free: 145.4 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01284/1.808, allocations: 8.669 MB / 0.7549 GB, free: 139.4 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.01e-06/1.808, allocations: 7.375 kB / 0.7549 GB, free: 139.4 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02011/1.828, allocations: 9.49 MB / 0.7642 GB, free: 135.5 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004262/1.832, allocations: 1.103 MB / 0.7652 GB, free: 134.9 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002709/1.835, allocations: 71 kB / 0.7653 GB, free: 134.8 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005081/1.84, allocations: 222.8 kB / 0.7655 GB, free: 134.7 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001236/1.841, allocations: 265.2 kB / 0.7658 GB, free: 134.6 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008229/1.842, allocations: 112.9 kB / 0.7659 GB, free: 134.5 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.01029/1.852, allocations: 3.559 MB / 0.7694 GB, free: 131.6 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.172e-06/1.852, allocations: 7.188 kB / 0.7694 GB, free: 131.6 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.01345/1.866, allocations: 1.979 MB / 0.7713 GB, free: 129.6 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 (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,(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.01838/1.884, allocations: 10.22 MB / 0.7813 GB, free: 119.3 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.0136/1.898, allocations: 8.012 MB / 0.7891 GB, free: 111.3 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 9.989e-06/1.898, allocations: 4.188 kB / 0.7891 GB, free: 111.3 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00615/1.904, allocations: 3.535 MB / 0.7925 GB, free: 107.7 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008655/1.913, allocations: 1.246 MB / 0.7938 GB, free: 106.4 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1232/2.036, allocations: 63.51 MB / 0.8558 GB, free: 38.7 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01348/2.05, allocations: 7.598 MB / 0.8632 GB, free: 31.05 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.008129/2.058, allocations: 2.359 MB / 0.8655 GB, free: 28.69 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007298/2.065, allocations: 4.514 MB / 0.8699 GB, free: 24.17 MB / 478.1 MB Notification: Performance of SimCode: time 1.032e-06/2.065, allocations: 0 / 0.8699 GB, free: 24.17 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4229/2.488, allocations: 149.2 MB / 1.016 GB, free: 42.1 MB / 478.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001738/2.488, allocations: 288.5 kB / 1.016 GB, free: 41.73 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.305/8.793, allocations: 4 kB / 1.016 GB, free: 41.72 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