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.001013/0.001013, allocations: 88.39 kB / 16.31 MB, free: 6.449 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.001229/0.001229, allocations: 183.1 kB / 17.21 MB, free: 6.316 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.361/1.361, allocations: 223.3 MB / 241.2 MB, free: 5.164 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002443/0.0002443, allocations: 5.844 kB / 300.9 MB, free: 5.531 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1101/0.1104, allocations: 50.42 MB / 351.3 MB, free: 11.2 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter): time 0.01787/0.1283, allocations: 17.91 MB / 369.3 MB, free: 9.219 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01204/0.1404, allocations: 5.54 MB / 374.8 MB, free: 3.664 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004435/0.1448, allocations: 123.4 kB / 374.9 MB, free: 3.543 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003705/0.1486, allocations: 0.9977 MB / 375.9 MB, free: 2.539 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006231/0.1548, allocations: 1.597 MB / 377.5 MB, free: 0.9336 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00277/0.1576, allocations: 0.8211 MB / 378.3 MB, free: 120 kB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.009059/0.1667, allocations: 6.117 MB / 384.4 MB, free: 9.977 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005913/0.1726, allocations: 3.633 MB / 388.1 MB, free: 6.281 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004094/0.1767, allocations: 2.004 MB / 390.1 MB, free: 4.27 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005127/0.1819, allocations: 2.65 MB / 392.7 MB, free: 1.609 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00159/0.1835, allocations: 323.9 kB / 393.1 MB, free: 1.293 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002763/0.1863, allocations: 0.5505 MB / 393.6 MB, free: 0.7422 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00222/0.1886, allocations: 1.374 MB / 395 MB, free: 15.36 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002906/0.1915, allocations: 1.128 MB / 396.1 MB, free: 14.23 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01183/0.2033, allocations: 8.375 MB / 404.5 MB, free: 5.828 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.454e-06/0.2034, allocations: 0 / 404.5 MB, free: 5.828 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.636e-06/0.2034, allocations: 0 / 404.5 MB, free: 5.828 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0004288/0.2038, allocations: 0 / 404.5 MB, free: 5.828 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.01604/0.2199, allocations: 5.595 MB / 410.1 MB, free: 156 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.181e-05/0.22, allocations: 12.03 kB / 410.1 MB, free: 144 kB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002537/0.2225, allocations: 0.7075 MB / 410.8 MB, free: 15.42 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005852/0.2284, allocations: 1.012 MB / 411.8 MB, free: 14.4 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009186/0.2376, allocations: 3.342 MB / 415.1 MB, free: 10.98 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005879/0.2382, allocations: 402.2 kB / 415.5 MB, free: 10.59 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001873/0.2401, allocations: 0.496 MB / 416 MB, free: 10.09 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0232/0.2633, allocations: 6.751 MB / 422.8 MB, free: 3.273 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003959/0.2638, allocations: 15.91 kB / 422.8 MB, free: 3.258 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002226/0.266, allocations: 208 kB / 423 MB, free: 3.055 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003313/0.2664, allocations: 246.2 kB / 423.2 MB, free: 2.812 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2374/0.5038, allocations: 5.737 MB / 429 MB, free: 56.74 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03787/0.5417, allocations: 21.19 MB / 450.2 MB, free: 46.11 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00706/0.5488, allocations: 8.539 MB / 458.7 MB, free: 38.35 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00306/0.5519, allocations: 2.142 MB / 460.9 MB, free: 37.31 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008864/0.5608, allocations: 5.947 MB / 466.8 MB, free: 33.24 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.743e-05/0.5609, allocations: 67.27 kB / 466.9 MB, free: 33.18 MB / 350.1 MB Notification: Performance of pre-optimization done (n=205): time 3.927e-06/0.5609, allocations: 0 / 466.9 MB, free: 33.18 MB / 350.1 MB Notification: Performance of matching and sorting (n=222): time 0.01855/0.5794, allocations: 10.5 MB / 477.4 MB, free: 22.49 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.789e-05/0.5795, allocations: 77.41 kB / 477.5 MB, free: 22.4 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003703/0.5832, allocations: 2.888 MB / 480.3 MB, free: 19.5 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002732/0.5835, allocations: 61.7 kB / 480.4 MB, free: 19.44 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001116/0.5846, allocations: 2.348 MB / 482.7 MB, free: 17.07 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005387/0.5852, allocations: 0.7758 MB / 483.5 MB, free: 16.3 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001318/0.5853, allocations: 56 kB / 483.6 MB, free: 16.25 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001245/0.5855, allocations: 420 kB / 484 MB, free: 15.83 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00174/0.5872, allocations: 1.278 MB / 485.3 MB, free: 14.55 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002049/0.5893, allocations: 2.183 MB / 487.5 MB, free: 11.97 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002084/0.5914, allocations: 1.642 MB / 489.1 MB, free: 10.32 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.156e-05/0.5914, allocations: 8 kB / 489.1 MB, free: 10.32 MB / 350.1 MB Notification: Performance of matching and sorting (n=373) (initialization): time 0.006053/0.5974, allocations: 4.454 MB / 493.6 MB, free: 5.793 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.749e-05/0.5975, allocations: 20 kB / 493.6 MB, free: 5.773 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.991e-05/0.5976, allocations: 30.72 kB / 493.6 MB, free: 5.746 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001022/0.5986, allocations: 0.5175 MB / 494.1 MB, free: 5.211 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002288/0.6009, allocations: 0.6903 MB / 494.8 MB, free: 4.52 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007724/0.6086, allocations: 9.33 MB / 0.4923 GB, free: 10.53 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003047/0.6117, allocations: 187.7 kB / 0.4925 GB, free: 10.35 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004121/0.6122, allocations: 124 kB / 0.4926 GB, free: 10.23 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 129 * 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 (348): * Single equations (assignments): 341 * 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: 5 * 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: 5 {(3,100.0%) 11,(1,100.0%) 3,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00342/0.6156, allocations: 1.512 MB / 0.4941 GB, free: 8.703 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000853/0.6164, allocations: 324.1 kB / 0.4944 GB, free: 8.383 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007034/0.6235, allocations: 3.894 MB / 0.4982 GB, free: 4.387 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.389e-05/0.6236, allocations: 24 kB / 0.4982 GB, free: 4.363 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.862e-05/0.6236, allocations: 8 kB / 0.4982 GB, free: 4.355 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.648e-05/0.6236, allocations: 11.95 kB / 0.4983 GB, free: 4.344 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01637/0.64, allocations: 8.504 MB / 0.5066 GB, free: 11.7 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.489e-05/0.6401, allocations: 7.984 kB / 0.5066 GB, free: 11.7 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001619/0.6417, allocations: 383.8 kB / 0.5069 GB, free: 11.32 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001909/0.6436, allocations: 0.7297 MB / 0.5076 GB, free: 10.57 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002165/0.6439, allocations: 59.97 kB / 0.5077 GB, free: 10.51 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01408/0.6579, allocations: 15.21 MB / 0.5226 GB, free: 10.25 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.193e-06/0.658, allocations: 11.92 kB / 0.5226 GB, free: 10.24 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009186/0.6672, allocations: 5.574 MB / 0.528 GB, free: 4.523 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001856/0.6691, allocations: 0.661 MB / 0.5287 GB, free: 3.84 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007069/0.6698, allocations: 59.94 kB / 0.5287 GB, free: 3.781 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001581/0.6714, allocations: 148 kB / 0.5289 GB, free: 3.637 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005204/0.6719, allocations: 162.6 kB / 0.529 GB, free: 3.48 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001562/0.6721, allocations: 67.94 kB / 0.5291 GB, free: 3.414 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.00376/0.6759, allocations: 1.944 MB / 0.531 GB, free: 1.473 MB / 398.1 MB Notification: Performance of sort global known variables: time 7.91e-07/0.6759, allocations: 0 / 0.531 GB, free: 1.473 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.005022/0.6809, allocations: 0.9349 MB / 0.5319 GB, free: 0.543 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 (185): * Single equations (assignments): 177 * 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: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 8 {(1,100.0%) 5,(3,100.0%) 11,(1,100.0%) 3,(1,100.0%) 1,(2,100.0%) 1,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01052/0.6914, allocations: 6.249 MB / 0.538 GB, free: 10.15 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.00683/0.6983, allocations: 3.956 MB / 0.5419 GB, free: 6.09 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 8.586e-06/0.6984, allocations: 3.938 kB / 0.5419 GB, free: 6.086 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004632/0.703, allocations: 2.681 MB / 0.5445 GB, free: 3.309 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00463/0.7077, allocations: 0.8191 MB / 0.5453 GB, free: 2.496 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0622/0.7699, allocations: 29.19 MB / 0.5738 GB, free: 3.508 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004093/0.774, allocations: 3.294 MB / 0.577 GB, free: 184 kB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.1964/0.9705, allocations: 0.7578 MB / 0.5777 GB, free: 137 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002921/0.9735, allocations: 1.935 MB / 0.5796 GB, free: 137 MB / 446.1 MB Notification: Performance of SimCode: time 1.503e-06/0.9735, allocations: 1.844 kB / 0.5796 GB, free: 137 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1114/1.085, allocations: 78.62 MB / 0.6564 GB, free: 78.46 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001778/1.085, allocations: 248.1 kB / 0.6566 GB, free: 78.13 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.151/5.236, allocations: 0 / 0.6566 GB, free: 78.13 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