Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.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.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_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.001221/0.001221, allocations: 94.11 kB / 16.3 MB, free: 5.996 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.001453/0.001453, allocations: 183.7 kB / 17.2 MB, free: 5.914 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.368/1.368, allocations: 223.2 MB / 241.1 MB, free: 5.453 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003067/0.0003067, allocations: 5.5 kB / 300.8 MB, free: 5.941 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09542/0.09575, allocations: 50.42 MB / 351.2 MB, free: 11.62 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter): time 0.01596/0.1118, allocations: 16.3 MB / 367.5 MB, free: 11.27 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01181/0.1236, allocations: 5.733 MB / 373.3 MB, free: 5.52 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004367/0.128, allocations: 115.4 kB / 373.4 MB, free: 5.406 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004476/0.1325, allocations: 1.018 MB / 374.4 MB, free: 4.383 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007982/0.1405, allocations: 1.694 MB / 376.1 MB, free: 2.684 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003568/0.1441, allocations: 0.8152 MB / 376.9 MB, free: 1.871 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.008728/0.1529, allocations: 4.068 MB / 381 MB, free: 13.8 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00552/0.1584, allocations: 3.633 MB / 384.6 MB, free: 10.1 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003754/0.1622, allocations: 1.907 MB / 386.5 MB, free: 8.188 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004246/0.1665, allocations: 2.381 MB / 388.9 MB, free: 5.797 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001175/0.1677, allocations: 316 kB / 389.2 MB, free: 5.488 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002044/0.1698, allocations: 0.5348 MB / 389.7 MB, free: 4.953 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001351/0.1711, allocations: 1.316 MB / 391.1 MB, free: 3.633 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001761/0.1729, allocations: 1.132 MB / 392.2 MB, free: 2.492 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009098/0.182, allocations: 8.305 MB / 400.5 MB, free: 10.16 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.316e-06/0.1821, allocations: 0 / 400.5 MB, free: 10.16 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.595e-06/0.1821, allocations: 0 / 400.5 MB, free: 10.16 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0003396/0.1824, allocations: 0 / 400.5 MB, free: 10.16 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1347 * Number of variables: 1347 Notification: Performance of Generate backend data structure: time 0.01554/0.198, allocations: 5.58 MB / 406.1 MB, free: 4.504 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.28e-05/0.198, allocations: 8.031 kB / 406.1 MB, free: 4.496 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002247/0.2003, allocations: 0.7037 MB / 406.8 MB, free: 3.781 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005324/0.2056, allocations: 1.012 MB / 407.8 MB, free: 2.762 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007901/0.2135, allocations: 3.377 MB / 411.2 MB, free: 15.3 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004059/0.214, allocations: 402.2 kB / 411.6 MB, free: 14.91 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001513/0.2155, allocations: 0.5076 MB / 412.1 MB, free: 14.41 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.015/0.2305, allocations: 6.704 MB / 418.8 MB, free: 7.633 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001728/0.2307, allocations: 15.84 kB / 418.8 MB, free: 7.617 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008793/0.2316, allocations: 212 kB / 419 MB, free: 7.41 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002536/0.2319, allocations: 242.2 kB / 419.2 MB, free: 7.172 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01465/0.2465, allocations: 5.74 MB / 425 MB, free: 1.422 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2517/0.4983, allocations: 21.13 MB / 446.1 MB, free: 48.13 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006414/0.5047, allocations: 8.548 MB / 454.7 MB, free: 40.36 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008104/0.5129, allocations: 4.969 MB / 459.6 MB, free: 36.89 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.938e-05/0.5129, allocations: 60.41 kB / 459.7 MB, free: 36.83 MB / 350.1 MB Notification: Performance of pre-optimization done (n=219): time 3.547e-06/0.5129, allocations: 0 / 459.7 MB, free: 36.83 MB / 350.1 MB Notification: Performance of matching and sorting (n=241): time 0.02197/0.5349, allocations: 11.92 MB / 471.6 MB, free: 28.53 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.414e-05/0.535, allocations: 73.41 kB / 471.7 MB, free: 28.45 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003702/0.5387, allocations: 2.805 MB / 474.5 MB, free: 25.63 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003453/0.5391, allocations: 73.7 kB / 474.5 MB, free: 25.55 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001104/0.5402, allocations: 2.325 MB / 476.9 MB, free: 23.21 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005757/0.5408, allocations: 0.8303 MB / 477.7 MB, free: 22.38 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001352/0.5409, allocations: 60 kB / 477.8 MB, free: 22.32 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001486/0.5411, allocations: 428.2 kB / 478.2 MB, free: 21.9 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001808/0.5429, allocations: 1.355 MB / 479.5 MB, free: 20.54 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002033/0.5449, allocations: 2.213 MB / 481.7 MB, free: 17.94 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00208/0.547, allocations: 1.736 MB / 483.5 MB, free: 16.18 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.242e-05/0.5471, allocations: 8 kB / 483.5 MB, free: 16.18 MB / 350.1 MB Notification: Performance of matching and sorting (n=386) (initialization): time 0.006353/0.5534, allocations: 4.66 MB / 488.2 MB, free: 11.43 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.133e-05/0.5535, allocations: 16 kB / 488.2 MB, free: 11.41 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.649e-05/0.5535, allocations: 31.98 kB / 488.2 MB, free: 11.38 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001391/0.5549, allocations: 0.6811 MB / 488.9 MB, free: 10.68 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002344/0.5573, allocations: 0.7059 MB / 489.6 MB, free: 9.973 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007671/0.565, allocations: 9.543 MB / 499.1 MB, free: 15.9 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002705/0.5677, allocations: 191.7 kB / 499.3 MB, free: 15.71 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003007/0.568, allocations: 128 kB / 499.4 MB, free: 15.59 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 123 * 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 (353): * Single equations (assignments): 347 * 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: 4 * 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: 4 {(6,75.0%) 19,(1,100.0%) 1,(1,100.0%) 5,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002897/0.5709, allocations: 1.531 MB / 0.4892 GB, free: 14.05 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006789/0.5716, allocations: 324 kB / 0.4895 GB, free: 13.73 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00728/0.5789, allocations: 4.174 MB / 0.4936 GB, free: 9.477 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.237e-05/0.5789, allocations: 24 kB / 0.4936 GB, free: 9.453 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.644e-05/0.579, allocations: 8 kB / 0.4936 GB, free: 9.445 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.155e-05/0.579, allocations: 11.95 kB / 0.4937 GB, free: 9.434 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01615/0.5952, allocations: 8.918 MB / 0.5024 GB, free: 412 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.261e-05/0.5952, allocations: 4 kB / 0.5024 GB, free: 408 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001782/0.597, allocations: 407.9 kB / 0.5028 GB, free: 0 / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002265/0.5993, allocations: 0.8836 MB / 0.5036 GB, free: 15.1 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002545/0.5996, allocations: 64.11 kB / 0.5037 GB, free: 15.04 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01585/0.6154, allocations: 15.45 MB / 0.5188 GB, free: 14.66 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.51e-06/0.6155, allocations: 4.125 kB / 0.5188 GB, free: 14.66 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01017/0.6256, allocations: 6.272 MB / 0.5249 GB, free: 8.137 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002055/0.6277, allocations: 0.6649 MB / 0.5255 GB, free: 7.449 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007312/0.6285, allocations: 60 kB / 0.5256 GB, free: 7.391 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001724/0.6302, allocations: 159.8 kB / 0.5258 GB, free: 7.234 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004227/0.6307, allocations: 173.6 kB / 0.5259 GB, free: 7.066 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001485/0.6308, allocations: 71.97 kB / 0.526 GB, free: 6.996 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.00292/0.6338, allocations: 1.889 MB / 0.5278 GB, free: 5.109 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.6338, allocations: 4 kB / 0.5278 GB, free: 5.105 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.003665/0.6374, allocations: 0.9623 MB / 0.5288 GB, free: 4.148 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 13 (vfController.x,smrM.inertiaRotor.w,smrM.stator.core.Phi.re,smrM.stator.core.Phi.im,smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smrE.inertiaRotor.w,smrE.idq_sr[1],smrE.idq_sr[2],smrE.idq_dr[1],smrE.idq_dr[2],loadInertiaM.phi,loadInertiaE.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 (193): * Single equations (assignments): 186 * 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: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(6,72.2%) 19,(1,100.0%) 5,(1,100.0%) 1,(2,100.0%) 1,(1,100.0%) 8,(1,100.0%) 1,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01047/0.6479, allocations: 7.832 MB / 0.5364 GB, free: 12.13 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.006683/0.6546, allocations: 4.143 MB / 0.5405 GB, free: 7.906 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 6.171e-06/0.6547, allocations: 0 / 0.5405 GB, free: 7.906 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004673/0.6594, allocations: 2.755 MB / 0.5432 GB, free: 5.059 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003595/0.663, allocations: 0.7896 MB / 0.5439 GB, free: 4.281 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2642/0.9273, allocations: 47.67 MB / 0.5905 GB, free: 138.3 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002739/0.93, allocations: 3.408 MB / 0.5938 GB, free: 137.5 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002761/0.9328, allocations: 0.758 MB / 0.5946 GB, free: 137.4 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00204/0.9349, allocations: 1.969 MB / 0.5965 GB, free: 136.8 MB / 446.1 MB Notification: Performance of SimCode: time 1.322e-06/0.9349, allocations: 0 / 0.5965 GB, free: 136.8 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1035/1.038, allocations: 80.14 MB / 0.6747 GB, free: 65.25 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001504/1.039, allocations: 253.9 kB / 0.675 GB, free: 64.91 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.025/5.064, allocations: 7.312 kB / 0.675 GB, free: 64.91 MB / 446.1 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_Inverter_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_Inverter.fmu > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter_res.mat does not exist to compare? outputFormat=mat