Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.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.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_Inverter",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.001003/0.001003, allocations: 89.88 kB / 16.31 MB, free: 5.637 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.0009367/0.0009367, allocations: 178.7 kB / 17.2 MB, free: 5.559 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.423/1.423, allocations: 223.2 MB / 241.2 MB, free: 5.418 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002619/0.0002619, allocations: 5.719 kB / 300.9 MB, free: 6.035 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1023/0.1026, allocations: 50.43 MB / 351.3 MB, free: 11.56 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter): time 0.009462/0.1121, allocations: 9.118 MB / 360.5 MB, free: 2.406 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.006315/0.1184, allocations: 3.215 MB / 363.7 MB, free: 15.18 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001772/0.1202, allocations: 47.81 kB / 363.7 MB, free: 15.14 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00181/0.1221, allocations: 0.6213 MB / 364.3 MB, free: 14.51 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002266/0.1244, allocations: 0.699 MB / 365 MB, free: 13.81 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008227/0.1252, allocations: 275.6 kB / 365.3 MB, free: 13.54 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00338/0.1286, allocations: 2.78 MB / 368.1 MB, free: 10.75 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002229/0.1309, allocations: 1.58 MB / 369.7 MB, free: 9.137 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001535/0.1324, allocations: 0.9415 MB / 370.6 MB, free: 8.191 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001665/0.1341, allocations: 1.28 MB / 371.9 MB, free: 6.906 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000265/0.1344, allocations: 140 kB / 372 MB, free: 6.77 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006119/0.135, allocations: 223.8 kB / 372.3 MB, free: 6.551 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006981/0.1357, allocations: 0.7009 MB / 373 MB, free: 5.848 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000587/0.1363, allocations: 0.5159 MB / 373.5 MB, free: 5.324 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002918/0.1392, allocations: 3.506 MB / 377 MB, free: 1.809 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.923e-06/0.1392, allocations: 4 kB / 377 MB, free: 1.805 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.1393, allocations: 0 / 377 MB, free: 1.805 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.605e-05/0.1393, allocations: 0 / 377 MB, free: 1.805 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 581 * Number of variables: 581 Notification: Performance of Generate backend data structure: time 0.004714/0.144, allocations: 2.625 MB / 379.6 MB, free: 15.12 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.329e-05/0.1441, allocations: 12.03 kB / 379.6 MB, free: 15.11 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000577/0.1447, allocations: 328.8 kB / 379.9 MB, free: 14.77 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008209/0.1455, allocations: 308.5 kB / 380.2 MB, free: 14.47 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002457/0.148, allocations: 1.524 MB / 381.8 MB, free: 12.89 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001527/0.1482, allocations: 176.4 kB / 381.9 MB, free: 12.71 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003014/0.1485, allocations: 223.9 kB / 382.2 MB, free: 12.49 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005007/0.1535, allocations: 2.909 MB / 385.1 MB, free: 9.496 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.536e-05/0.1536, allocations: 7.906 kB / 385.1 MB, free: 9.488 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001934/0.1538, allocations: 95.98 kB / 385.2 MB, free: 9.395 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001213/0.1539, allocations: 108.3 kB / 385.3 MB, free: 9.285 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004481/0.1584, allocations: 2.445 MB / 387.7 MB, free: 6.824 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01513/0.1735, allocations: 9.149 MB / 396.9 MB, free: 13.39 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002451/0.176, allocations: 1.726 MB / 398.6 MB, free: 11.55 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001755/0.1778, allocations: 1.011 MB / 399.6 MB, free: 10.54 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003225/0.1782, allocations: 207.2 kB / 399.8 MB, free: 10.29 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.365e-05/0.1782, allocations: 55.5 kB / 399.9 MB, free: 10.23 MB / 334.1 MB Notification: Performance of pre-optimization done (n=105): time 3.316e-06/0.1783, allocations: 0 / 399.9 MB, free: 10.23 MB / 334.1 MB Notification: Performance of matching and sorting (n=122): time 0.01438/0.1926, allocations: 6.672 MB / 406.5 MB, free: 3.391 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.122e-05/0.1927, allocations: 64.41 kB / 406.6 MB, free: 3.316 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002806/0.1955, allocations: 1.55 MB / 408.1 MB, free: 1.758 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001051/0.1957, allocations: 45.7 kB / 408.2 MB, free: 1.707 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008684/0.1965, allocations: 1.112 MB / 409.3 MB, free: 0.5781 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003536/0.1969, allocations: 429.8 kB / 409.7 MB, free: 156 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.713e-05/0.197, allocations: 28 kB / 409.7 MB, free: 128 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001766/0.1972, allocations: 365.9 kB / 410.1 MB, free: 15.76 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001217/0.1984, allocations: 0.7144 MB / 410.8 MB, free: 15.05 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001453/0.1999, allocations: 1.146 MB / 412 MB, free: 13.72 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001433/0.2013, allocations: 0.9003 MB / 412.9 MB, free: 12.82 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.28e-05/0.2014, allocations: 7.953 kB / 412.9 MB, free: 12.81 MB / 350.1 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.004283/0.2056, allocations: 2.522 MB / 415.4 MB, free: 10.25 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.069e-05/0.2057, allocations: 8 kB / 415.4 MB, free: 10.24 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.644e-05/0.2057, allocations: 24.22 kB / 415.4 MB, free: 10.22 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009865/0.2067, allocations: 427 kB / 415.8 MB, free: 9.789 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001209/0.2079, allocations: 351.5 kB / 416.2 MB, free: 9.445 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006814/0.2148, allocations: 6.544 MB / 422.7 MB, free: 2.496 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001505/0.2163, allocations: 115.8 kB / 422.8 MB, free: 2.383 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000227/0.2166, allocations: 64 kB / 422.9 MB, free: 2.32 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * 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 (169): * Single equations (assignments): 165 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(3,100.0%) 12,(1,100.0%) 6,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001547/0.2181, allocations: 0.7121 MB / 423.6 MB, free: 1.598 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004769/0.2186, allocations: 173.8 kB / 423.8 MB, free: 1.426 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2489/0.4676, allocations: 2.215 MB / 426 MB, free: 62.16 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.708e-05/0.4676, allocations: 12.28 kB / 426 MB, free: 62.16 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.969e-06/0.4676, allocations: 12.64 kB / 426 MB, free: 62.16 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.07e-05/0.4677, allocations: 3.797 kB / 426 MB, free: 62.16 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00907/0.4767, allocations: 4.8 MB / 430.8 MB, free: 61.55 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.148e-05/0.4768, allocations: 3.188 kB / 430.8 MB, free: 61.55 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001039/0.4778, allocations: 229.2 kB / 431.1 MB, free: 61.55 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001362/0.4792, allocations: 453.4 kB / 431.5 MB, free: 61.52 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001112/0.4793, allocations: 38.41 kB / 431.5 MB, free: 61.52 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007421/0.4868, allocations: 7.971 MB / 439.5 MB, free: 56.34 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.081e-06/0.4868, allocations: 4.125 kB / 439.5 MB, free: 56.34 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006675/0.4935, allocations: 3.247 MB / 442.8 MB, free: 55.7 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001067/0.4946, allocations: 405 kB / 443.2 MB, free: 55.52 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002251/0.4948, allocations: 29.41 kB / 443.2 MB, free: 55.5 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008185/0.4957, allocations: 93.44 kB / 443.3 MB, free: 55.49 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002559/0.4959, allocations: 94.73 kB / 443.4 MB, free: 55.47 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001008/0.496, allocations: 46.58 kB / 443.4 MB, free: 55.46 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.00181/0.4979, allocations: 1.056 MB / 444.5 MB, free: 55.05 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.563e-06/0.4979, allocations: 0 / 444.5 MB, free: 55.05 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.00183/0.4997, allocations: 486.8 kB / 444.9 MB, free: 55 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 7 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],smpm.idq_rr[2],smpm.idq_dr[1],vfController.x,loadInertia.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 (107): * Single equations (assignments): 103 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(3,100.0%) 12,(1,100.0%) 6,(1,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.005069/0.5048, allocations: 3.852 MB / 448.8 MB, free: 53.03 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003473/0.5083, allocations: 2.308 MB / 451.1 MB, free: 51.77 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.593e-06/0.5083, allocations: 0 / 451.1 MB, free: 51.77 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002111/0.5104, allocations: 1.482 MB / 452.6 MB, free: 50.81 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002408/0.5129, allocations: 455.2 kB / 453 MB, free: 50.6 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02477/0.5376, allocations: 14.33 MB / 467.4 MB, free: 35.81 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001392/0.5391, allocations: 1.864 MB / 469.2 MB, free: 33.91 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.001412/0.5405, allocations: 391.3 kB / 469.6 MB, free: 33.53 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001034/0.5416, allocations: 0.8703 MB / 470.5 MB, free: 32.66 MB / 350.1 MB Notification: Performance of SimCode: time 1.072e-06/0.5416, allocations: 0 / 470.5 MB, free: 32.66 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07095/0.6125, allocations: 41.91 MB / 0.5004 GB, free: 7.184 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002145/0.6128, allocations: 238.3 kB / 0.5006 GB, free: 6.941 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.076/3.689, allocations: 0 / 0.5006 GB, free: 6.941 MB / 366.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_Inverter_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_Inverter.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter_res.mat does not exist to compare? outputFormat=mat