Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_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.SMR_Inverter,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_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.001273/0.001279, allocations: 90.12 kB / 16.31 MB, free: 6.461 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.001517/0.001518, allocations: 183.9 kB / 17.21 MB, free: 6.336 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.43/1.43, allocations: 223.2 MB / 241.2 MB, free: 5.441 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002568/0.0002569, allocations: 6.5 kB / 300.9 MB, free: 5.996 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09439/0.09467, allocations: 50.43 MB / 351.3 MB, free: 11.62 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter): time 0.009838/0.1045, allocations: 8.498 MB / 359.8 MB, free: 3.094 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.006/0.1106, allocations: 2.923 MB / 362.8 MB, free: 168 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001043/0.1117, allocations: 51.75 kB / 362.8 MB, free: 116 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001466/0.1131, allocations: 0.5319 MB / 363.3 MB, free: 15.58 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001975/0.1151, allocations: 0.6447 MB / 364 MB, free: 14.93 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007791/0.1159, allocations: 251.7 kB / 364.2 MB, free: 14.68 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003324/0.1193, allocations: 2.592 MB / 366.8 MB, free: 12.08 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00214/0.1214, allocations: 1.528 MB / 368.4 MB, free: 10.52 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001593/0.123, allocations: 0.8793 MB / 369.2 MB, free: 9.637 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001956/0.125, allocations: 1.206 MB / 370.4 MB, free: 8.426 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004126/0.1254, allocations: 132 kB / 370.6 MB, free: 8.297 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006785/0.1261, allocations: 207.9 kB / 370.8 MB, free: 8.094 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007742/0.1269, allocations: 0.6698 MB / 371.4 MB, free: 7.422 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006698/0.1276, allocations: 492.5 kB / 371.9 MB, free: 6.934 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003508/0.1311, allocations: 3.338 MB / 375.3 MB, free: 3.586 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.941e-06/0.1311, allocations: 0 / 375.3 MB, free: 3.586 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.475e-06/0.1311, allocations: 4 kB / 375.3 MB, free: 3.582 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.801e-05/0.1312, allocations: 0 / 375.3 MB, free: 3.582 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: 553 * Number of variables: 553 Notification: Performance of Generate backend data structure: time 0.005232/0.1364, allocations: 2.491 MB / 377.8 MB, free: 1.027 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.369e-05/0.1365, allocations: 8.031 kB / 377.8 MB, free: 1.02 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005826/0.1371, allocations: 312 kB / 378.1 MB, free: 0.7031 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007385/0.1378, allocations: 292.7 kB / 378.4 MB, free: 424 kB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002588/0.1404, allocations: 1.44 MB / 379.8 MB, free: 14.91 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001687/0.1406, allocations: 172.2 kB / 380 MB, free: 14.74 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002869/0.1409, allocations: 207.9 kB / 380.2 MB, free: 14.54 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00469/0.1456, allocations: 2.796 MB / 383 MB, free: 11.66 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.016e-05/0.1457, allocations: 11.84 kB / 383 MB, free: 11.64 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001882/0.1459, allocations: 84 kB / 383.1 MB, free: 11.56 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001219/0.146, allocations: 104.2 kB / 383.2 MB, free: 11.46 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003931/0.1499, allocations: 2.355 MB / 385.5 MB, free: 9.086 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01269/0.1626, allocations: 8.648 MB / 394.2 MB, free: 192 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002339/0.165, allocations: 1.706 MB / 395.9 MB, free: 14.36 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001633/0.1667, allocations: 0.9807 MB / 396.8 MB, free: 13.38 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002909/0.167, allocations: 215 kB / 397.1 MB, free: 13.13 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.004e-05/0.167, allocations: 51.56 kB / 397.1 MB, free: 13.07 MB / 334.1 MB Notification: Performance of pre-optimization done (n=101): time 2.645e-06/0.167, allocations: 0 / 397.1 MB, free: 13.07 MB / 334.1 MB Notification: Performance of matching and sorting (n=116): time 0.01321/0.1802, allocations: 6.329 MB / 403.4 MB, free: 6.578 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.139e-05/0.1803, allocations: 68.34 kB / 403.5 MB, free: 6.496 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002195/0.1825, allocations: 1.425 MB / 404.9 MB, free: 5.059 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001486/0.1827, allocations: 49.7 kB / 405 MB, free: 5.004 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007835/0.1835, allocations: 1.041 MB / 406 MB, free: 3.949 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003859/0.1839, allocations: 406.1 kB / 406.4 MB, free: 3.547 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.904e-05/0.184, allocations: 28 kB / 406.4 MB, free: 3.52 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001665/0.1842, allocations: 361.9 kB / 406.8 MB, free: 3.16 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001253/0.1854, allocations: 0.6949 MB / 407.5 MB, free: 2.465 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001459/0.1869, allocations: 1.077 MB / 408.6 MB, free: 1.23 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001402/0.1883, allocations: 0.8613 MB / 409.4 MB, free: 376 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.584e-06/0.1883, allocations: 4 kB / 409.4 MB, free: 372 kB / 334.1 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.004364/0.1927, allocations: 2.425 MB / 411.9 MB, free: 13.9 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.558e-05/0.1928, allocations: 12 kB / 411.9 MB, free: 13.89 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.127e-05/0.1928, allocations: 12.25 kB / 411.9 MB, free: 13.88 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009445/0.1937, allocations: 419.1 kB / 412.3 MB, free: 13.45 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001169/0.1949, allocations: 335.5 kB / 412.6 MB, free: 13.12 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006793/0.2017, allocations: 6.465 MB / 419.1 MB, free: 6.258 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001573/0.2034, allocations: 107.8 kB / 419.2 MB, free: 6.152 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001456/0.2035, allocations: 56 kB / 419.2 MB, free: 6.098 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * 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 (157): * Single equations (assignments): 153 * 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%) 11,(1,100.0%) 6,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001554/0.2051, allocations: 0.6886 MB / 419.9 MB, free: 5.398 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004077/0.2055, allocations: 158 kB / 420.1 MB, free: 5.242 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003788/0.2093, allocations: 2.15 MB / 422.2 MB, free: 3.055 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.375e-05/0.2093, allocations: 12 kB / 422.2 MB, free: 3.043 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.698e-06/0.2093, allocations: 4 kB / 422.2 MB, free: 3.039 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.237e-05/0.2094, allocations: 7.922 kB / 422.3 MB, free: 3.031 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2544/0.4638, allocations: 4.591 MB / 426.8 MB, free: 62.07 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.253e-05/0.4639, allocations: 3.875 kB / 426.9 MB, free: 62.07 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008982/0.4648, allocations: 222.8 kB / 427.1 MB, free: 62.07 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00123/0.466, allocations: 450.2 kB / 427.5 MB, free: 62.04 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001058/0.4661, allocations: 31.2 kB / 427.5 MB, free: 62.04 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00817/0.4743, allocations: 7.901 MB / 435.4 MB, free: 56.91 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.21e-05/0.4744, allocations: 8.812 kB / 435.4 MB, free: 56.9 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006124/0.4805, allocations: 3.128 MB / 438.6 MB, free: 56.47 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009804/0.4815, allocations: 390.9 kB / 439 MB, free: 56.38 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000228/0.4818, allocations: 29.5 kB / 439 MB, free: 56.38 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000883/0.4827, allocations: 90.73 kB / 439.1 MB, free: 56.38 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002859/0.483, allocations: 95.61 kB / 439.2 MB, free: 56.37 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.505e-05/0.4831, allocations: 38.05 kB / 439.2 MB, free: 56.37 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001704/0.4848, allocations: 0.9751 MB / 440.2 MB, free: 56.26 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.31e-07/0.4848, allocations: 1.375 kB / 440.2 MB, free: 56.26 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.002336/0.4871, allocations: 462 kB / 440.6 MB, free: 56.26 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 7 (smr.inertiaRotor.w,smr.idq_sr[1],smr.idq_sr[2],smr.idq_dr[1],smr.idq_dr[2],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 (102): * Single equations (assignments): 98 * 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%) 11,(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.004854/0.492, allocations: 3.737 MB / 444.4 MB, free: 55.09 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003329/0.4953, allocations: 2.236 MB / 446.6 MB, free: 54.05 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 8.957e-06/0.4954, allocations: 0 / 446.6 MB, free: 54.05 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002067/0.4975, allocations: 1.44 MB / 448 MB, free: 53.27 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002093/0.4996, allocations: 408.2 kB / 448.4 MB, free: 53.14 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02036/0.5199, allocations: 13.49 MB / 461.9 MB, free: 41.62 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001163/0.5212, allocations: 1.796 MB / 463.7 MB, free: 39.8 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.001211/0.5224, allocations: 373.5 kB / 464.1 MB, free: 39.43 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008907/0.5233, allocations: 0.8117 MB / 464.9 MB, free: 38.62 MB / 350.1 MB Notification: Performance of SimCode: time 9.91e-07/0.5233, allocations: 0 / 464.9 MB, free: 38.62 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06563/0.5889, allocations: 38.89 MB / 0.492 GB, free: 152 kB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002175/0.5892, allocations: 233.2 kB / 0.4922 GB, free: 15.91 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.141/3.73, allocations: 6.312 kB / 0.4922 GB, free: 15.9 MB / 366.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_Inverter_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_Inverter.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter_res.mat does not exist to compare? outputFormat=mat