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.001116/0.001116, allocations: 95.08 kB / 16.3 MB, free: 6.457 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.001235/0.001235, allocations: 184.5 kB / 17.19 MB, free: 6.34 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.402/1.402, allocations: 223.2 MB / 241.1 MB, free: 5.391 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002775/0.0002775, allocations: 7.438 kB / 300.8 MB, free: 6.039 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1068/0.1071, allocations: 50.43 MB / 351.2 MB, free: 11.6 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter): time 0.009046/0.1162, allocations: 8.375 MB / 359.6 MB, free: 3.195 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.006614/0.1228, allocations: 3.306 MB / 362.9 MB, free: 15.88 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001564/0.1244, allocations: 43.81 kB / 363 MB, free: 15.84 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001818/0.1263, allocations: 0.6413 MB / 363.6 MB, free: 15.2 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00251/0.1288, allocations: 0.7205 MB / 364.3 MB, free: 14.47 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008991/0.1297, allocations: 267.5 kB / 364.6 MB, free: 14.21 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003445/0.1332, allocations: 1.8 MB / 366.4 MB, free: 12.41 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002092/0.1353, allocations: 1.58 MB / 368 MB, free: 10.8 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00165/0.1369, allocations: 0.8718 MB / 368.8 MB, free: 9.922 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001611/0.1386, allocations: 1.121 MB / 370 MB, free: 8.797 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002687/0.1388, allocations: 139.9 kB / 370.1 MB, free: 8.66 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006077/0.1395, allocations: 203.9 kB / 370.3 MB, free: 8.461 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007123/0.1402, allocations: 0.6699 MB / 371 MB, free: 7.789 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006048/0.1408, allocations: 0.5159 MB / 371.5 MB, free: 7.266 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003349/0.1442, allocations: 3.471 MB / 375 MB, free: 3.785 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.1442, allocations: 0 / 375 MB, free: 3.785 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.194e-06/0.1442, allocations: 0 / 375 MB, free: 3.785 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001183/0.1443, allocations: 4 kB / 375 MB, free: 3.781 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.006143/0.1505, allocations: 2.601 MB / 377.6 MB, free: 1.117 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.183e-05/0.1505, allocations: 8.031 kB / 377.6 MB, free: 1.109 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000712/0.1513, allocations: 328.8 kB / 377.9 MB, free: 0.7773 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008539/0.1521, allocations: 308.5 kB / 378.2 MB, free: 484 kB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003107/0.1552, allocations: 1.543 MB / 379.7 MB, free: 14.87 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001692/0.1554, allocations: 172.4 kB / 379.9 MB, free: 14.7 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003378/0.1558, allocations: 227.9 kB / 380.1 MB, free: 14.47 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0052/0.161, allocations: 2.893 MB / 383 MB, free: 11.5 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.557e-05/0.1611, allocations: 7.938 kB / 383 MB, free: 11.49 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001912/0.1613, allocations: 87.94 kB / 383.1 MB, free: 11.4 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001279/0.1614, allocations: 116.3 kB / 383.2 MB, free: 11.29 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004184/0.1656, allocations: 2.434 MB / 385.7 MB, free: 8.836 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01458/0.1802, allocations: 9.106 MB / 394.8 MB, free: 15.44 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002343/0.1826, allocations: 1.728 MB / 396.5 MB, free: 13.6 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002931/0.1829, allocations: 203.2 kB / 396.7 MB, free: 13.36 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.599e-05/0.1829, allocations: 43.56 kB / 396.7 MB, free: 13.31 MB / 334.1 MB Notification: Performance of pre-optimization done (n=105): time 3.105e-06/0.1829, allocations: 0 / 396.7 MB, free: 13.31 MB / 334.1 MB Notification: Performance of matching and sorting (n=122): time 0.0141/0.1971, allocations: 6.665 MB / 403.4 MB, free: 6.48 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001025/0.1972, allocations: 64.41 kB / 403.5 MB, free: 6.402 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002178/0.1994, allocations: 1.506 MB / 405 MB, free: 4.887 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 9.691e-05/0.1995, allocations: 45.7 kB / 405 MB, free: 4.836 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008013/0.2003, allocations: 1.1 MB / 406.1 MB, free: 3.719 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003467/0.2007, allocations: 429.8 kB / 406.5 MB, free: 3.293 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.48e-05/0.2007, allocations: 32 kB / 406.6 MB, free: 3.262 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001494/0.2009, allocations: 361.9 kB / 406.9 MB, free: 2.902 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001163/0.2021, allocations: 0.7261 MB / 407.6 MB, free: 2.176 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001405/0.2035, allocations: 1.137 MB / 408.8 MB, free: 0.8594 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001381/0.2049, allocations: 0.9082 MB / 409.7 MB, free: 15.95 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.93e-06/0.2049, allocations: 4 kB / 409.7 MB, free: 15.94 MB / 350.1 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.004465/0.2094, allocations: 2.514 MB / 412.2 MB, free: 13.39 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.896e-05/0.2094, allocations: 12 kB / 412.2 MB, free: 13.38 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.052e-05/0.2094, allocations: 12 kB / 412.2 MB, free: 13.36 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001003/0.2105, allocations: 403.4 kB / 412.6 MB, free: 12.96 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001326/0.2118, allocations: 363.4 kB / 413 MB, free: 12.6 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007279/0.2191, allocations: 6.438 MB / 419.4 MB, free: 5.766 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001495/0.2206, allocations: 115.8 kB / 419.5 MB, free: 5.652 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001153/0.2207, allocations: 67.92 kB / 419.6 MB, free: 5.586 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 58 * 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 (172): * Single equations (assignments): 168 * 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%) 3,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001439/0.2222, allocations: 0.7083 MB / 420.3 MB, free: 4.867 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003211/0.2225, allocations: 173.9 kB / 420.5 MB, free: 4.695 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003846/0.2264, allocations: 2.198 MB / 422.7 MB, free: 2.457 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.044e-05/0.2264, allocations: 12 kB / 422.7 MB, free: 2.445 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.081e-05/0.2264, allocations: 11.95 kB / 422.7 MB, free: 2.434 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.443e-05/0.2264, allocations: 11.97 kB / 422.7 MB, free: 2.422 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2703/0.4968, allocations: 4.74 MB / 427.4 MB, free: 61.48 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.203e-05/0.4969, allocations: 2.938 kB / 427.4 MB, free: 61.48 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009686/0.4978, allocations: 234.9 kB / 427.7 MB, free: 61.48 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001276/0.4991, allocations: 437.2 kB / 428.1 MB, free: 61.45 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001092/0.4992, allocations: 42.41 kB / 428.1 MB, free: 61.45 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009435/0.5087, allocations: 7.927 MB / 436.1 MB, free: 56.3 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.075e-06/0.5087, allocations: 5.594 kB / 436.1 MB, free: 56.3 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007123/0.5159, allocations: 3.464 MB / 439.5 MB, free: 55.54 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001239/0.5171, allocations: 390.6 kB / 439.9 MB, free: 55.45 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002374/0.5174, allocations: 35.05 kB / 440 MB, free: 55.45 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009179/0.5183, allocations: 90.73 kB / 440 MB, free: 55.45 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004322/0.5187, allocations: 102.1 kB / 440.1 MB, free: 55.44 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001208/0.5189, allocations: 42.34 kB / 440.2 MB, free: 55.44 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0021/0.521, allocations: 1.018 MB / 441.2 MB, free: 55.33 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.521, allocations: 1.281 kB / 441.2 MB, free: 55.33 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.002177/0.5232, allocations: 480.7 kB / 441.7 MB, free: 55.33 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 (110): * Single equations (assignments): 106 * 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%) 3,(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.005492/0.5287, allocations: 5.064 MB / 446.7 MB, free: 52.53 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00394/0.5326, allocations: 2.285 MB / 449 MB, free: 51.48 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.255e-05/0.5327, allocations: 0.75 kB / 449 MB, free: 51.48 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002538/0.5352, allocations: 1.471 MB / 450.5 MB, free: 50.68 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002497/0.5377, allocations: 435.7 kB / 450.9 MB, free: 50.55 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02574/0.5635, allocations: 22.66 MB / 473.6 MB, free: 29.09 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001413/0.565, allocations: 1.901 MB / 475.5 MB, free: 27.16 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.001242/0.5662, allocations: 390.7 kB / 475.9 MB, free: 26.77 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008975/0.5671, allocations: 0.8664 MB / 476.7 MB, free: 25.91 MB / 350.1 MB Notification: Performance of SimCode: time 1.613e-06/0.5671, allocations: 7.938 kB / 476.7 MB, free: 25.9 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.067/0.6341, allocations: 41.46 MB / 0.506 GB, free: 0.8828 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000194/0.6344, allocations: 231.6 kB / 0.5063 GB, free: 0.6406 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.925/3.559, allocations: 0 / 0.5063 GB, free: 0.6406 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