Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter,fileNamePrefix="Modelica_trunk_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_trunk_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 trunk/package.mo): time 0.0009648/0.0009648, allocations: 97.66 kB / 17 MB, free: 5.953 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001186/0.001186, allocations: 195.4 kB / 17.9 MB, free: 5.562 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.413/1.413, allocations: 227.4 MB / 246 MB, free: 12 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002415/0.0002416, allocations: 4 kB / 306.8 MB, free: 1.477 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1072/0.1075, allocations: 51.51 MB / 358.3 MB, free: 13.96 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter): time 0.2095/0.317, allocations: 18.46 MB / 376.8 MB, free: 10.39 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01439/0.3314, allocations: 5.756 MB / 382.5 MB, free: 9.691 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006044/0.3376, allocations: 123.3 kB / 382.7 MB, free: 9.66 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005026/0.3426, allocations: 1.012 MB / 383.7 MB, free: 9.32 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007637/0.3503, allocations: 1.569 MB / 385.2 MB, free: 8.723 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003627/0.3539, allocations: 0.8483 MB / 386.1 MB, free: 8.219 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01156/0.3655, allocations: 6.232 MB / 392.3 MB, free: 5.258 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006549/0.3721, allocations: 3.627 MB / 396 MB, free: 3.754 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004139/0.3763, allocations: 2 MB / 398 MB, free: 2.695 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005965/0.3823, allocations: 2.665 MB / 400.6 MB, free: 1.074 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001594/0.3839, allocations: 322.3 kB / 400.9 MB, free: 1.074 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003987/0.3879, allocations: 0.5822 MB / 401.5 MB, free: 0.9414 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002093/0.39, allocations: 1.374 MB / 402.9 MB, free: 15.97 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003531/0.3936, allocations: 1.135 MB / 404 MB, free: 15.23 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01162/0.4052, allocations: 8.408 MB / 412.4 MB, free: 6.816 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.316e-06/0.4053, allocations: 0 / 412.4 MB, free: 6.816 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.526e-06/0.4053, allocations: 0 / 412.4 MB, free: 6.816 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0003542/0.4057, allocations: 3.938 kB / 412.4 MB, free: 6.812 MB / 318.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.01451/0.4202, allocations: 5.635 MB / 418.1 MB, free: 1.098 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.839e-05/0.4202, allocations: 8.031 kB / 418.1 MB, free: 1.09 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002076/0.4223, allocations: 0.7037 MB / 418.8 MB, free: 384 kB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004971/0.4273, allocations: 1.02 MB / 419.8 MB, free: 15.35 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006555/0.4339, allocations: 3.354 MB / 423.2 MB, free: 11.91 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003963/0.4343, allocations: 398.2 kB / 423.5 MB, free: 11.52 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001373/0.4357, allocations: 0.5076 MB / 424.1 MB, free: 11.02 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01559/0.4513, allocations: 6.747 MB / 430.8 MB, free: 4.199 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001563/0.4515, allocations: 15.83 kB / 430.8 MB, free: 4.184 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005503/0.452, allocations: 212 kB / 431 MB, free: 3.977 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002663/0.4523, allocations: 242.2 kB / 431.3 MB, free: 3.738 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01356/0.4659, allocations: 5.744 MB / 437 MB, free: 13.98 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0404/0.5063, allocations: 21.29 MB / 458.3 MB, free: 8.18 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008151/0.5145, allocations: 8.805 MB / 467.1 MB, free: 14.38 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003896/0.5185, allocations: 2.233 MB / 469.3 MB, free: 12.13 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01145/0.5299, allocations: 6.238 MB / 475.6 MB, free: 5.691 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.977e-05/0.53, allocations: 60.56 kB / 475.6 MB, free: 5.625 MB / 382.1 MB Notification: Performance of pre-optimization done (n=205): time 3.697e-06/0.53, allocations: 0 / 475.6 MB, free: 5.625 MB / 382.1 MB Notification: Performance of matching and sorting (n=222): time 0.02082/0.5508, allocations: 10.55 MB / 486.2 MB, free: 10.82 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.988e-05/0.5509, allocations: 73.41 kB / 486.3 MB, free: 10.73 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004567/0.5555, allocations: 2.898 MB / 489.2 MB, free: 7.824 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004035/0.5559, allocations: 61.7 kB / 489.2 MB, free: 7.758 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001607/0.5575, allocations: 2.369 MB / 491.6 MB, free: 5.363 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008901/0.5584, allocations: 0.7625 MB / 492.3 MB, free: 4.59 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000161/0.5586, allocations: 60 kB / 492.4 MB, free: 4.531 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002194/0.5588, allocations: 431.9 kB / 492.8 MB, free: 4.102 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002108/0.5609, allocations: 1.267 MB / 494.1 MB, free: 2.832 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002821/0.5638, allocations: 2.191 MB / 496.3 MB, free: 248 kB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002589/0.5664, allocations: 1.642 MB / 497.9 MB, free: 14.6 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.412e-05/0.5664, allocations: 8 kB / 497.9 MB, free: 14.59 MB / 414.1 MB Notification: Performance of matching and sorting (n=373) (initialization): time 0.007398/0.5738, allocations: 4.466 MB / 0.4906 GB, free: 10.05 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.294e-05/0.5739, allocations: 24.09 kB / 0.4906 GB, free: 10.03 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.245e-05/0.5739, allocations: 31.95 kB / 0.4907 GB, free: 10 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001179/0.5751, allocations: 0.5328 MB / 0.4912 GB, free: 9.445 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002495/0.5776, allocations: 0.6942 MB / 0.4919 GB, free: 8.754 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008398/0.5861, allocations: 9.48 MB / 0.5011 GB, free: 14.61 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002974/0.5891, allocations: 187.5 kB / 0.5013 GB, free: 14.42 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005235/0.5896, allocations: 128 kB / 0.5014 GB, free: 14.3 MB / 430.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 (345): * Single equations (assignments): 338 * 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%) 6,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003784/0.5934, allocations: 1.52 MB / 0.5029 GB, free: 12.77 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007651/0.5942, allocations: 316.1 kB / 0.5032 GB, free: 12.45 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007058/0.6012, allocations: 3.926 MB / 0.5071 GB, free: 8.426 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.464e-05/0.6013, allocations: 20 kB / 0.5071 GB, free: 8.406 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.697e-05/0.6013, allocations: 12 kB / 0.5071 GB, free: 8.395 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.642e-05/0.6014, allocations: 15.95 kB / 0.5071 GB, free: 8.379 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01503/0.6164, allocations: 8.522 MB / 0.5154 GB, free: 15.67 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.497e-05/0.6165, allocations: 7.984 kB / 0.5154 GB, free: 15.66 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001614/0.6181, allocations: 383.9 kB / 0.5158 GB, free: 15.29 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001899/0.62, allocations: 0.7442 MB / 0.5165 GB, free: 14.52 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002308/0.6203, allocations: 59.97 kB / 0.5166 GB, free: 14.46 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2/0.8203, allocations: 15.35 MB / 0.5316 GB, free: 133.6 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.27e-06/0.8203, allocations: 4.062 kB / 0.5316 GB, free: 133.6 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009037/0.8293, allocations: 5.596 MB / 0.537 GB, free: 132.9 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001551/0.8309, allocations: 0.6548 MB / 0.5377 GB, free: 132.8 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000459/0.8314, allocations: 53.66 kB / 0.5377 GB, free: 132.7 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001359/0.8328, allocations: 152.7 kB / 0.5379 GB, free: 132.7 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003403/0.8331, allocations: 163.4 kB / 0.538 GB, free: 132.7 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001234/0.8332, allocations: 69.23 kB / 0.5381 GB, free: 132.7 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003074/0.8363, allocations: 1.956 MB / 0.54 GB, free: 131.9 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.8363, allocations: 1.219 kB / 0.54 GB, free: 131.9 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003214/0.8396, allocations: 0.9412 MB / 0.5409 GB, free: 131.9 MB / 446.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 (182): * Single equations (assignments): 174 * 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%) 6,(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.008435/0.848, allocations: 6.279 MB / 0.5471 GB, free: 128.9 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005572/0.8536, allocations: 3.986 MB / 0.551 GB, free: 127 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 8.886e-06/0.8536, allocations: 3.938 kB / 0.551 GB, free: 127 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003355/0.857, allocations: 2.682 MB / 0.5536 GB, free: 125.5 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004069/0.8611, allocations: 0.8252 MB / 0.5544 GB, free: 125.3 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05091/0.912, allocations: 29.36 MB / 0.5831 GB, free: 103 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002762/0.9148, allocations: 3.301 MB / 0.5863 GB, free: 100 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002581/0.9174, allocations: 0.7619 MB / 0.587 GB, free: 99.24 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00216/0.9196, allocations: 1.944 MB / 0.5889 GB, free: 97.3 MB / 446.1 MB Notification: Performance of SimCode: time 7.51e-07/0.9196, allocations: 0 / 0.5889 GB, free: 97.3 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1049/1.025, allocations: 79.27 MB / 0.6663 GB, free: 18.64 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001568/1.025, allocations: 260 kB / 0.6666 GB, free: 18.29 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.102/5.127, allocations: 4 kB / 0.6666 GB, free: 18.29 MB / 446.1 MB (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_Inverter_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_Inverter.fmu > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter_res.mat does not exist to compare? outputFormat=mat