Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase.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.ComparisonPolyphase.SMR_Inverter_Polyphase,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_ComparisonPolyphase_SMR_Inverter_Polyphase",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_ComparisonPolyphase_SMR_Inverter_Polyphase",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008044/0.0008044, allocations: 100.3 kB / 17 MB, free: 6.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008488/0.0008489, allocations: 197.9 kB / 17.91 MB, free: 5.902 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.398/1.398, allocations: 227.3 MB / 246 MB, free: 11.99 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002302/0.0002304, allocations: 4 kB / 306.8 MB, free: 1.453 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1285/0.1287, allocations: 51.48 MB / 358.3 MB, free: 13.97 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase): time 0.2444/0.3732, allocations: 21.97 MB / 380.3 MB, free: 9.148 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01388/0.3871, allocations: 6.432 MB / 386.7 MB, free: 6.648 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005634/0.3928, allocations: 156.3 kB / 386.9 MB, free: 6.609 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00525/0.3981, allocations: 1.138 MB / 388 MB, free: 6.039 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008753/0.4068, allocations: 1.744 MB / 389.8 MB, free: 4.926 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004309/0.4112, allocations: 1.001 MB / 390.8 MB, free: 4.332 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01734/0.4285, allocations: 8.168 MB / 398.9 MB, free: 356 kB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01286/0.4415, allocations: 5.082 MB / 404 MB, free: 13.73 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008203/0.4497, allocations: 2.6 MB / 406.6 MB, free: 12.36 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009928/0.4597, allocations: 3.388 MB / 410 MB, free: 8.961 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002728/0.4625, allocations: 444 kB / 410.4 MB, free: 8.527 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00609/0.4686, allocations: 0.6404 MB / 411.1 MB, free: 7.887 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004294/0.4729, allocations: 1.631 MB / 412.7 MB, free: 6.25 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005685/0.4786, allocations: 1.533 MB / 414.2 MB, free: 4.707 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02225/0.5009, allocations: 11.71 MB / 426 MB, free: 8.957 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.886e-06/0.501, allocations: 0 / 426 MB, free: 8.957 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.316e-06/0.501, allocations: 4 kB / 426 MB, free: 8.953 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.000642/0.5016, allocations: 0 / 426 MB, free: 8.953 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: 1854 * Number of variables: 1854 Notification: Performance of Generate backend data structure: time 0.02463/0.5263, allocations: 7.546 MB / 433.5 MB, free: 1.312 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.901e-05/0.5264, allocations: 8.031 kB / 433.5 MB, free: 1.305 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004252/0.5306, allocations: 0.9548 MB / 434.5 MB, free: 344 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01078/0.5414, allocations: 1.677 MB / 436.2 MB, free: 14.64 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01228/0.5538, allocations: 4.55 MB / 440.7 MB, free: 10.02 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007512/0.5546, allocations: 0.5254 MB / 441.2 MB, free: 9.496 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002626/0.5572, allocations: 0.6756 MB / 441.9 MB, free: 8.82 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02762/0.5848, allocations: 9.415 MB / 451.3 MB, free: 15.34 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002804/0.5852, allocations: 4 kB / 451.3 MB, free: 15.34 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001737/0.5869, allocations: 284 kB / 451.6 MB, free: 15.06 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003565/0.5873, allocations: 334.2 kB / 451.9 MB, free: 14.73 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02177/0.609, allocations: 8.059 MB / 460 MB, free: 6.66 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06722/0.6763, allocations: 29.1 MB / 489.1 MB, free: 8.895 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01921/0.6956, allocations: 17.76 MB / 0.495 GB, free: 5.082 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00816/0.7038, allocations: 3.619 MB / 0.4985 GB, free: 1.445 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02149/0.7253, allocations: 9.008 MB / 0.5073 GB, free: 8.172 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.961e-05/0.7255, allocations: 64.56 kB / 0.5074 GB, free: 8.098 MB / 430.1 MB Notification: Performance of pre-optimization done (n=259): time 7.174e-06/0.7255, allocations: 0 / 0.5074 GB, free: 8.098 MB / 430.1 MB Notification: Performance of matching and sorting (n=265): time 0.03191/0.7574, allocations: 11.85 MB / 0.5189 GB, free: 11.91 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.857e-05/0.7575, allocations: 81.5 kB / 0.519 GB, free: 11.82 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008994/0.7665, allocations: 3.376 MB / 0.5223 GB, free: 8.449 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007311/0.7673, allocations: 73.7 kB / 0.5224 GB, free: 8.371 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003072/0.7704, allocations: 3.058 MB / 0.5254 GB, free: 5.277 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001521/0.7719, allocations: 0.9165 MB / 0.5263 GB, free: 4.348 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004925/0.7725, allocations: 68 kB / 0.5263 GB, free: 4.281 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0003547/0.7728, allocations: 445.2 kB / 0.5267 GB, free: 3.84 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00333/0.7762, allocations: 1.451 MB / 0.5282 GB, free: 2.387 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2532/1.029, allocations: 2.485 MB / 0.5306 GB, free: 133 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004399/1.034, allocations: 1.9 MB / 0.5324 GB, free: 133 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.32e-05/1.034, allocations: 13.73 kB / 0.5325 GB, free: 133 MB / 446.1 MB Notification: Performance of matching and sorting (n=436) (initialization): time 0.00992/1.044, allocations: 5.019 MB / 0.5374 GB, free: 132.1 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.378e-05/1.044, allocations: 22.55 kB / 0.5374 GB, free: 132.1 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.791e-05/1.044, allocations: 33.19 kB / 0.5374 GB, free: 132.1 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001423/1.045, allocations: 0.5596 MB / 0.538 GB, free: 131.9 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003126/1.049, allocations: 0.7928 MB / 0.5387 GB, free: 131.8 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008939/1.057, allocations: 8.765 MB / 0.5473 GB, free: 124.9 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003837/1.061, allocations: 173.4 kB / 0.5475 GB, free: 124.9 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006103/1.062, allocations: 145.3 kB / 0.5476 GB, free: 124.8 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 146 * 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 (406): * Single equations (assignments): 400 * 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 {(1,100.0%) 1,(1,100.0%) 8,(1,100.0%) 1,(3,100.0%) 16} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005187/1.067, allocations: 2.082 MB / 0.5496 GB, free: 123.7 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001565/1.069, allocations: 368.4 kB / 0.55 GB, free: 123.7 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01007/1.079, allocations: 4.576 MB / 0.5545 GB, free: 121.7 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.605e-05/1.079, allocations: 31.55 kB / 0.5545 GB, free: 121.7 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.613e-05/1.079, allocations: 12.56 kB / 0.5545 GB, free: 121.7 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.625e-05/1.079, allocations: 11.44 kB / 0.5545 GB, free: 121.7 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0178/1.097, allocations: 10.37 MB / 0.5646 GB, free: 117.1 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.259e-05/1.097, allocations: 3.812 kB / 0.5646 GB, free: 117.1 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001657/1.098, allocations: 411.9 kB / 0.565 GB, free: 117.1 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002398/1.101, allocations: 1.023 MB / 0.566 GB, free: 116.8 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002304/1.101, allocations: 74.86 kB / 0.5661 GB, free: 116.7 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01518/1.116, allocations: 17.33 MB / 0.583 GB, free: 103.1 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.212e-06/1.116, allocations: 15.95 kB / 0.583 GB, free: 103.1 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009782/1.126, allocations: 6.457 MB / 0.5893 GB, free: 96.62 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002147/1.128, allocations: 0.7596 MB / 0.5901 GB, free: 95.84 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008246/1.129, allocations: 63.95 kB / 0.5901 GB, free: 95.77 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001612/1.131, allocations: 147.9 kB / 0.5903 GB, free: 95.63 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000473/1.131, allocations: 198.5 kB / 0.5905 GB, free: 95.43 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001638/1.131, allocations: 79.98 kB / 0.5906 GB, free: 95.36 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003864/1.135, allocations: 2.284 MB / 0.5928 GB, free: 93.09 MB / 446.1 MB Notification: Performance of sort global known variables: time 7.11e-07/1.135, allocations: 4 kB / 0.5928 GB, free: 93.08 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005645/1.141, allocations: 1.167 MB / 0.5939 GB, free: 91.92 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 14 (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,smr3.inertiaRotor.w,smr3.stator.core.Phi.re,smr3.stator.core.Phi.im,smr3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smr3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,loadInertiaM.phi,loadInertia3.phi,vfController3.x,vfControllerM.x) * 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 (195): * Single equations (assignments): 188 * 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 {(1,100.0%) 8,(4,93.8%) 33,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 12,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.009664/1.151, allocations: 7.141 MB / 0.6009 GB, free: 84.57 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006124/1.157, allocations: 4.298 MB / 0.6051 GB, free: 80.16 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 9.588e-06/1.157, allocations: 9.156 kB / 0.6051 GB, free: 80.15 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004017/1.161, allocations: 2.96 MB / 0.608 GB, free: 77.09 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004924/1.166, allocations: 0.9936 MB / 0.609 GB, free: 76.11 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08271/1.249, allocations: 36.33 MB / 0.6445 GB, free: 37.52 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007676/1.256, allocations: 4.249 MB / 0.6486 GB, free: 33.24 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.004089/1.26, allocations: 0.8289 MB / 0.6494 GB, free: 32.4 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004499/1.265, allocations: 2.553 MB / 0.6519 GB, free: 29.85 MB / 446.1 MB Notification: Performance of SimCode: time 1.403e-06/1.265, allocations: 0 / 0.6519 GB, free: 29.85 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.411/1.676, allocations: 96.97 MB / 0.7466 GB, free: 141 MB / 478.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000216/1.676, allocations: 298 kB / 0.7469 GB, free: 140.6 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.239/5.915, allocations: 0 / 0.7469 GB, free: 140.6 MB / 478.1 MB (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_ComparisonPolyphase_SMR_Inverter_Polyphase_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_ComparisonPolyphase_SMR_Inverter_Polyphase.fmu > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase_res.mat does not exist to compare? outputFormat=mat