Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_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_4_0_0_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.001087/0.001087, allocations: 88.59 kB / 16.31 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.001418/0.001418, allocations: 179.8 kB / 17.21 MB, free: 6.324 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.428/1.428, allocations: 223.3 MB / 241.2 MB, free: 5.402 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003394/0.0003399, allocations: 8.875 kB / 300.9 MB, free: 6.047 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1035/0.1038, allocations: 50.42 MB / 351.4 MB, free: 11.54 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.0352/0.1391, allocations: 34.46 MB / 385.8 MB, free: 8.957 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0206/0.1597, allocations: 9.652 MB / 395.5 MB, free: 15.27 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006557/0.1663, allocations: 279.1 kB / 395.7 MB, free: 15 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006607/0.173, allocations: 1.646 MB / 397.4 MB, free: 13.34 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01115/0.1842, allocations: 2.811 MB / 400.2 MB, free: 10.52 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005929/0.1901, allocations: 1.515 MB / 401.7 MB, free: 9.016 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01906/0.2092, allocations: 13.74 MB / 415.5 MB, free: 11.23 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2428/0.452, allocations: 19.9 MB / 435.4 MB, free: 5.887 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01004/0.4621, allocations: 4.814 MB / 440.2 MB, free: 5.883 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01087/0.473, allocations: 5.646 MB / 445.8 MB, free: 5.879 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004125/0.4772, allocations: 0.7594 MB / 446.6 MB, free: 5.879 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007557/0.4847, allocations: 1.128 MB / 447.7 MB, free: 5.875 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005817/0.4906, allocations: 2.452 MB / 450.2 MB, free: 5.875 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005806/0.4964, allocations: 2.514 MB / 452.7 MB, free: 5.844 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.04251/0.539, allocations: 23.46 MB / 476.1 MB, free: 0 / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.165e-05/0.539, allocations: 2.531 kB / 476.1 MB, free: 0 / 350.1 MB Notification: Performance of FrontEnd: time 4.678e-06/0.5391, allocations: 64 / 476.1 MB, free: 0 / 350.1 MB Notification: Performance of Transformations before backend: time 0.0009138/0.54, allocations: 0 / 476.1 MB, free: 0 / 350.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.03997/0.58, allocations: 12.53 MB / 488.7 MB, free: 7.945 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.879e-05/0.58, allocations: 12.03 kB / 488.7 MB, free: 7.934 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007007/0.587, allocations: 1.713 MB / 490.4 MB, free: 7.012 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03331/0.6204, allocations: 6.154 MB / 496.5 MB, free: 1.266 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02317/0.6436, allocations: 7.684 MB / 0.4924 GB, free: 12.35 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001423/0.6451, allocations: 0.9113 MB / 0.4933 GB, free: 11.45 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007909/0.653, allocations: 1.202 MB / 0.4945 GB, free: 10.26 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07832/0.7314, allocations: 18.56 MB / 0.5126 GB, free: 7.633 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005744/0.7321, allocations: 27.45 kB / 0.5126 GB, free: 7.609 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005897/0.738, allocations: 0.4951 MB / 0.5131 GB, free: 7.125 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008523/0.7388, allocations: 0.6343 MB / 0.5137 GB, free: 6.488 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04432/0.7831, allocations: 16.66 MB / 0.53 GB, free: 5.812 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3607/1.144, allocations: 59.02 MB / 0.5876 GB, free: 112.7 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02431/1.168, allocations: 32.83 MB / 0.6197 GB, free: 84.67 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006387/1.175, allocations: 3.728 MB / 0.6233 GB, free: 84.61 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0147/1.189, allocations: 8.693 MB / 0.6318 GB, free: 83.88 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.084e-05/1.19, allocations: 71.8 kB / 0.6319 GB, free: 83.84 MB / 462.1 MB Notification: Performance of pre-optimization done (n=349): time 4.629e-06/1.19, allocations: 0 / 0.6319 GB, free: 83.84 MB / 462.1 MB Notification: Performance of matching and sorting (n=389): time 0.03583/1.225, allocations: 18.45 MB / 0.6499 GB, free: 80.77 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.036e-05/1.225, allocations: 95.16 kB / 0.65 GB, free: 80.7 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009548/1.235, allocations: 4.978 MB / 0.6549 GB, free: 80.26 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007303/1.236, allocations: 91.2 kB / 0.6549 GB, free: 80.23 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003265/1.239, allocations: 5.437 MB / 0.6602 GB, free: 77.03 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001496/1.241, allocations: 1.363 MB / 0.6616 GB, free: 75.99 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009061/1.242, allocations: 134.4 kB / 0.6617 GB, free: 75.89 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0005801/1.242, allocations: 0.571 MB / 0.6623 GB, free: 75.46 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004856/1.247, allocations: 2.884 MB / 0.6651 GB, free: 74.37 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005776/1.253, allocations: 5.85 MB / 0.6708 GB, free: 68.77 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006365/1.259, allocations: 4.192 MB / 0.6749 GB, free: 66.43 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001123/1.259, allocations: 27.41 kB / 0.6749 GB, free: 66.43 MB / 462.1 MB Notification: Performance of matching and sorting (n=865) (initialization): time 0.01789/1.277, allocations: 9.792 MB / 0.6845 GB, free: 57.92 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001589/1.277, allocations: 48 kB / 0.6845 GB, free: 57.88 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002045/1.278, allocations: 100 kB / 0.6846 GB, free: 57.78 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002413/1.28, allocations: 0.9513 MB / 0.6855 GB, free: 56.81 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005793/1.286, allocations: 1.579 MB / 0.6871 GB, free: 55.23 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01139/1.297, allocations: 9.492 MB / 0.6964 GB, free: 45.34 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006345/1.304, allocations: 403.2 kB / 0.6967 GB, free: 44.95 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001608/1.305, allocations: 352 kB / 0.6971 GB, free: 44.61 MB / 462.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.009746/1.315, allocations: 4.247 MB / 0.7012 GB, free: 40.34 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001704/1.317, allocations: 0.5132 MB / 0.7017 GB, free: 39.82 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01315/1.33, allocations: 6.485 MB / 0.7081 GB, free: 33.29 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.457e-05/1.33, allocations: 44 kB / 0.7081 GB, free: 33.25 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.686e-05/1.33, allocations: 8 kB / 0.7081 GB, free: 33.24 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.305e-05/1.33, allocations: 23.48 kB / 0.7081 GB, free: 33.22 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03618/1.366, allocations: 15.69 MB / 0.7235 GB, free: 17.5 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.818e-05/1.366, allocations: 4 kB / 0.7235 GB, free: 17.49 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003362/1.37, allocations: 0.7414 MB / 0.7242 GB, free: 16.75 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002195/1.372, allocations: 0.7885 MB / 0.725 GB, free: 15.95 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006343/1.373, allocations: 87.97 kB / 0.725 GB, free: 15.86 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009253/1.382, allocations: 8.654 MB / 0.7335 GB, free: 6.809 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.745e-06/1.382, allocations: 7.938 kB / 0.7335 GB, free: 6.801 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01682/1.399, allocations: 9.469 MB / 0.7427 GB, free: 13.23 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003523/1.402, allocations: 1.068 MB / 0.7438 GB, free: 12.13 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001843/1.404, allocations: 68 kB / 0.7438 GB, free: 12.07 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003673/1.408, allocations: 227.8 kB / 0.7441 GB, free: 11.84 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009892/1.409, allocations: 266.7 kB / 0.7443 GB, free: 11.58 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006284/1.41, allocations: 116 kB / 0.7444 GB, free: 11.47 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.01208/1.422, allocations: 3.311 MB / 0.7477 GB, free: 8.172 MB / 478.1 MB Notification: Performance of sort global known variables: time 8.02e-07/1.422, allocations: 0 / 0.7477 GB, free: 8.172 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.01667/1.438, allocations: 1.878 MB / 0.7495 GB, free: 6.297 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,(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.02553/1.464, allocations: 10.19 MB / 0.7594 GB, free: 12 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01781/1.482, allocations: 7.609 MB / 0.7669 GB, free: 4.309 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.282e-05/1.482, allocations: 0 / 0.7669 GB, free: 4.309 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.007669/1.49, allocations: 3.554 MB / 0.7703 GB, free: 0.6758 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.2407/1.73, allocations: 1.211 MB / 0.7715 GB, free: 176.2 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1332/1.864, allocations: 59.34 MB / 0.8295 GB, free: 145.1 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01477/1.878, allocations: 7.319 MB / 0.8366 GB, free: 139.5 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0083/1.887, allocations: 2.15 MB / 0.8387 GB, free: 137.7 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008321/1.895, allocations: 4.315 MB / 0.8429 GB, free: 133.4 MB / 494.1 MB Notification: Performance of SimCode: time 1.312e-06/1.895, allocations: 0 / 0.8429 GB, free: 133.4 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4677/2.363, allocations: 143.1 MB / 0.9827 GB, free: 147.2 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002192/2.363, allocations: 271.2 kB / 0.9829 GB, free: 146.9 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.408/7.771, allocations: 0 / 0.9829 GB, free: 146.9 MB / 494.1 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSource_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSource.fmu > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource_res.mat does not exist to compare? outputFormat=mat