Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase,fileNamePrefix="Modelica_trunk_cpp_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_cpp_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/Complex trunk/package.mo): time 0.0008971/0.0008971, allocations: 192.3 kB / 17.37 MB, free: 4.434 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.158/1.158, allocations: 226.5 MB / 244.7 MB, free: 8.105 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008128/0.0008128, allocations: 95.45 kB / 296.7 MB, free: 6.891 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002451/0.0002452, allocations: 8 kB / 356.9 MB, free: 10.77 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1825/0.1828, allocations: 51.29 MB / 408.2 MB, free: 27.7 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase): time 0.01486/0.1977, allocations: 22.01 MB / 430.2 MB, free: 5.621 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.009709/0.2074, allocations: 6.423 MB / 436.6 MB, free: 15.19 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002986/0.2105, allocations: 151.4 kB / 436.7 MB, free: 15.04 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003075/0.2136, allocations: 1.141 MB / 437.9 MB, free: 13.89 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004315/0.2179, allocations: 1.755 MB / 439.6 MB, free: 12.13 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002216/0.2201, allocations: 0.9825 MB / 440.6 MB, free: 11.16 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.007405/0.2275, allocations: 8.272 MB / 448.9 MB, free: 2.852 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005756/0.2333, allocations: 6.057 MB / 454.9 MB, free: 12.7 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002581/0.2359, allocations: 2.591 MB / 457.5 MB, free: 10.1 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002941/0.2388, allocations: 3.369 MB / 460.9 MB, free: 6.719 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000599/0.2394, allocations: 440 kB / 461.3 MB, free: 6.289 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001298/0.2408, allocations: 0.6715 MB / 462 MB, free: 5.617 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001168/0.2419, allocations: 1.627 MB / 463.6 MB, free: 3.984 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002813/0.2447, allocations: 3.525 MB / 467.2 MB, free: 448 kB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008163/0.2529, allocations: 11.71 MB / 478.9 MB, free: 4.695 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.12e-06/0.2529, allocations: 0 / 478.9 MB, free: 4.695 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.713e-06/0.2529, allocations: 3.938 kB / 478.9 MB, free: 4.691 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.000146/0.2531, allocations: 4 kB / 478.9 MB, free: 4.688 MB / 346.7 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.01568/0.2688, allocations: 7.468 MB / 486.3 MB, free: 13.12 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.932e-05/0.2688, allocations: 8.031 kB / 486.4 MB, free: 13.12 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001492/0.2703, allocations: 0.951 MB / 487.3 MB, free: 12.15 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007413/0.2778, allocations: 1.678 MB / 489 MB, free: 10.46 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006722/0.2845, allocations: 4.65 MB / 493.6 MB, free: 5.738 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003493/0.2848, allocations: 0.5218 MB / 494.2 MB, free: 5.215 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009016/0.2858, allocations: 0.6795 MB / 494.8 MB, free: 4.535 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0157/0.3015, allocations: 9.408 MB / 0.4924 GB, free: 11.06 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001232/0.3016, allocations: 11.84 kB / 0.4924 GB, free: 11.05 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005834/0.3022, allocations: 288 kB / 0.4927 GB, free: 10.77 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002613/0.3025, allocations: 330.2 kB / 0.493 GB, free: 10.45 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01248/0.315, allocations: 8.055 MB / 0.5009 GB, free: 2.379 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.182/0.497, allocations: 29.14 MB / 0.5293 GB, free: 64.19 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0105/0.5075, allocations: 17.74 MB / 0.5467 GB, free: 47.14 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004808/0.5124, allocations: 3.626 MB / 0.5502 GB, free: 44.11 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01031/0.5227, allocations: 9.024 MB / 0.559 GB, free: 34.98 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.968e-05/0.5227, allocations: 60.55 kB / 0.5591 GB, free: 34.91 MB / 378.7 MB Notification: Performance of pre-optimization done (n=259): time 3.497e-06/0.5227, allocations: 0 / 0.5591 GB, free: 34.91 MB / 378.7 MB Notification: Performance of matching and sorting (n=265): time 0.01757/0.5403, allocations: 11.78 MB / 0.5706 GB, free: 22.8 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.668e-05/0.5403, allocations: 77.5 kB / 0.5707 GB, free: 22.71 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003271/0.5436, allocations: 3.375 MB / 0.574 GB, free: 19.34 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001255/0.5438, allocations: 77.69 kB / 0.574 GB, free: 19.26 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001147/0.5449, allocations: 3.058 MB / 0.577 GB, free: 16.18 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004112/0.5453, allocations: 0.9144 MB / 0.5779 GB, free: 15.27 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001494/0.5455, allocations: 68 kB / 0.578 GB, free: 15.21 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000123/0.5456, allocations: 445.2 kB / 0.5784 GB, free: 14.77 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001767/0.5474, allocations: 1.447 MB / 0.5798 GB, free: 13.32 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002114/0.5495, allocations: 2.5 MB / 0.5823 GB, free: 10.36 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004132/0.5537, allocations: 4.199 MB / 0.5864 GB, free: 5.68 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.085e-05/0.5537, allocations: 8 kB / 0.5864 GB, free: 5.672 MB / 378.7 MB Notification: Performance of matching and sorting (n=436) (initialization): time 0.005884/0.5596, allocations: 5.017 MB / 0.5913 GB, free: 0.5703 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.437e-05/0.5596, allocations: 20.72 kB / 0.5913 GB, free: 0.5508 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.292e-05/0.5596, allocations: 36 kB / 0.5913 GB, free: 0.5156 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001151/0.5608, allocations: 0.5553 MB / 0.5919 GB, free: 15.94 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002621/0.5634, allocations: 0.7839 MB / 0.5926 GB, free: 15.16 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008009/0.5715, allocations: 8.777 MB / 0.6012 GB, free: 5.852 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001896/0.5734, allocations: 164 kB / 0.6014 GB, free: 5.691 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002331/0.5736, allocations: 148 kB / 0.6015 GB, free: 5.547 MB / 394.7 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.002972/0.5766, allocations: 2.089 MB / 0.6035 GB, free: 3.445 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004382/0.577, allocations: 371.4 kB / 0.6039 GB, free: 3.078 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00723/0.5843, allocations: 4.567 MB / 0.6084 GB, free: 14.4 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.932e-05/0.5843, allocations: 31.94 kB / 0.6084 GB, free: 14.37 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.273e-05/0.5843, allocations: 15.94 kB / 0.6084 GB, free: 14.36 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.158e-05/0.5844, allocations: 11.95 kB / 0.6084 GB, free: 14.34 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01466/0.599, allocations: 10.38 MB / 0.6185 GB, free: 3.816 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.196e-06/0.599, allocations: 4 kB / 0.6185 GB, free: 3.812 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001666/0.6007, allocations: 419.8 kB / 0.6189 GB, free: 3.402 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002342/0.6031, allocations: 1.026 MB / 0.6199 GB, free: 2.359 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001741/0.6033, allocations: 75.97 kB / 0.62 GB, free: 2.285 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01689/0.6202, allocations: 17.35 MB / 0.637 GB, free: 12 kB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.46e-06/0.6202, allocations: 8.031 kB / 0.637 GB, free: 4 kB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009065/0.6293, allocations: 6.461 MB / 0.6433 GB, free: 9.344 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001195/0.6305, allocations: 0.7657 MB / 0.644 GB, free: 8.555 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004355/0.6309, allocations: 63.98 kB / 0.6441 GB, free: 8.492 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001554/0.6325, allocations: 143.9 kB / 0.6442 GB, free: 8.352 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000505/0.633, allocations: 205.7 kB / 0.6444 GB, free: 8.148 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001576/0.6331, allocations: 79.97 kB / 0.6445 GB, free: 8.07 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.003011/0.6362, allocations: 2.287 MB / 0.6467 GB, free: 5.797 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.6362, allocations: 0 / 0.6467 GB, free: 5.797 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002899/0.6391, allocations: 1.163 MB / 0.6479 GB, free: 4.637 MB / 442.7 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.009649/0.6487, allocations: 7.137 MB / 0.6548 GB, free: 13.29 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.005869/0.6546, allocations: 4.298 MB / 0.659 GB, free: 8.875 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 5.48e-06/0.6546, allocations: 7.938 kB / 0.659 GB, free: 8.867 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004061/0.6587, allocations: 2.959 MB / 0.6619 GB, free: 5.812 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004819/0.6635, allocations: 0.9589 MB / 0.6629 GB, free: 4.863 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2021/0.8656, allocations: 36.16 MB / 0.6982 GB, free: 158.4 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003449/0.8691, allocations: 4.132 MB / 0.7022 GB, free: 156.9 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002567/0.8717, allocations: 2.577 MB / 0.7047 GB, free: 154.8 MB / 474.7 MB Notification: Performance of SimCode: time 5.91e-07/0.8717, allocations: 0 / 0.7047 GB, free: 154.8 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 9.126/9.998, allocations: 329 MB / 1.026 GB, free: 137.2 MB / 474.7 MB (rm -f Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase.pipe >> ../files/Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_ComparisonPolyphase_SMR_Inverter_Polyphase_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_ComparisonPolyphase_SMR_Inverter_Polyphase.fmu > Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/ComparisonPolyphase/SMR_Inverter_Polyphase/SMR_Inverter_Polyphase.csv","../files/Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches