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.001387/0.001387, allocations: 103.7 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001531/0.001531, allocations: 208.6 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.378/1.378, allocations: 227.4 MB / 246.8 MB, free: 10.63 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001355/0.001355, allocations: 60.48 kB / 307.1 MB, free: 0.5312 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.104/0.1054, allocations: 50.53 MB / 357.6 MB, free: 13.99 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase): time 0.2165/0.3219, allocations: 25.01 MB / 382.6 MB, free: 8.125 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01934/0.3413, allocations: 6.906 MB / 389.5 MB, free: 3.734 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005598/0.347, allocations: 168.1 kB / 389.7 MB, free: 3.695 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004717/0.3517, allocations: 1.61 MB / 391.3 MB, free: 2.801 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007629/0.3594, allocations: 2.122 MB / 393.4 MB, free: 1.371 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004844/0.3642, allocations: 1.482 MB / 394.9 MB, free: 444 kB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01315/0.3774, allocations: 8.089 MB / 403 MB, free: 11.96 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01728/0.3948, allocations: 7.319 MB / 410.3 MB, free: 7.645 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01006/0.4049, allocations: 3.832 MB / 414.1 MB, free: 3.801 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01106/0.416, allocations: 4.656 MB / 418.8 MB, free: 15.13 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004222/0.4202, allocations: 1.094 MB / 419.9 MB, free: 14.03 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006909/0.4272, allocations: 1.343 MB / 421.2 MB, free: 12.69 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005522/0.4328, allocations: 2.451 MB / 423.7 MB, free: 10.23 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01044/0.4432, allocations: 4.528 MB / 428.2 MB, free: 5.684 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01965/0.4629, allocations: 14.17 MB / 442.4 MB, free: 7.477 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.561e-06/0.463, allocations: 0 / 442.4 MB, free: 7.477 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.384e-06/0.463, allocations: 0 / 442.4 MB, free: 7.477 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0004227/0.4634, allocations: 0 / 442.4 MB, free: 7.477 MB / 350.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.0275/0.4909, allocations: 8.895 MB / 451.3 MB, free: 14.48 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.416e-05/0.491, allocations: 8.031 kB / 451.3 MB, free: 14.48 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002159/0.4931, allocations: 0.9511 MB / 452.2 MB, free: 13.51 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009261/0.5024, allocations: 1.674 MB / 453.9 MB, free: 11.83 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01056/0.513, allocations: 4.724 MB / 458.6 MB, free: 7.027 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005346/0.5136, allocations: 0.5221 MB / 459.2 MB, free: 6.504 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002961/0.5165, allocations: 0.6833 MB / 459.8 MB, free: 5.82 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02192/0.5385, allocations: 9.447 MB / 469.3 MB, free: 12.31 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002008/0.5387, allocations: 7.891 kB / 469.3 MB, free: 12.3 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001069/0.5398, allocations: 291.9 kB / 469.6 MB, free: 12.02 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003109/0.5401, allocations: 330.2 kB / 469.9 MB, free: 11.69 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0182/0.5583, allocations: 8.078 MB / 478 MB, free: 3.602 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05601/0.6144, allocations: 28.97 MB / 0.4951 GB, free: 5.961 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01714/0.6315, allocations: 17.75 MB / 0.5124 GB, free: 2.141 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006732/0.6383, allocations: 3.514 MB / 0.5158 GB, free: 14.61 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01806/0.6564, allocations: 8.918 MB / 0.5245 GB, free: 5.426 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.766e-05/0.6565, allocations: 64.61 kB / 0.5246 GB, free: 5.352 MB / 446.1 MB Notification: Performance of pre-optimization done (n=259): time 4.899e-06/0.6565, allocations: 7.938 kB / 0.5246 GB, free: 5.344 MB / 446.1 MB Notification: Performance of matching and sorting (n=265): time 0.2168/0.8733, allocations: 11.7 MB / 0.536 GB, free: 136.2 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.123e-05/0.8734, allocations: 78.66 kB / 0.5361 GB, free: 136.2 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005053/0.8785, allocations: 3.405 MB / 0.5394 GB, free: 134.9 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002036/0.8787, allocations: 69.44 kB / 0.5395 GB, free: 134.8 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002147/0.8808, allocations: 3.066 MB / 0.5425 GB, free: 132.5 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008806/0.8817, allocations: 0.9094 MB / 0.5434 GB, free: 131.8 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001013/0.8827, allocations: 0.5945 MB / 0.544 GB, free: 131.5 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.82e-05/0.8828, allocations: 307.3 kB / 0.5443 GB, free: 131.2 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002524/0.8853, allocations: 1.451 MB / 0.5457 GB, free: 130.6 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003024/0.8884, allocations: 2.49 MB / 0.5481 GB, free: 128.8 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005338/0.8937, allocations: 4.191 MB / 0.5522 GB, free: 126 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.821e-05/0.8938, allocations: 13.84 kB / 0.5522 GB, free: 126 MB / 446.1 MB Notification: Performance of matching and sorting (n=436) (initialization): time 0.007443/0.9012, allocations: 5.024 MB / 0.5571 GB, free: 123.8 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.959e-05/0.9013, allocations: 15.72 kB / 0.5571 GB, free: 123.8 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.784e-05/0.9013, allocations: 31.5 kB / 0.5572 GB, free: 123.8 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001322/0.9027, allocations: 0.5734 MB / 0.5577 GB, free: 123.6 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002804/0.9055, allocations: 0.7808 MB / 0.5585 GB, free: 123.6 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007071/0.9126, allocations: 9.477 MB / 0.5677 GB, free: 115.9 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003274/0.9159, allocations: 162.9 kB / 0.5679 GB, free: 115.9 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003155/0.9162, allocations: 150.9 kB / 0.568 GB, free: 115.9 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 (not torn): 2 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,1,100.0%), (1,8,100.0%), (1,1,100.0%), (3,16,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003367/0.9196, allocations: 2.089 MB / 0.5701 GB, free: 114.7 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008496/0.9204, allocations: 370 kB / 0.5704 GB, free: 114.6 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006736/0.9272, allocations: 4.552 MB / 0.5749 GB, free: 112.5 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.726e-05/0.9272, allocations: 26.22 kB / 0.5749 GB, free: 112.5 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.699e-05/0.9272, allocations: 17.31 kB / 0.5749 GB, free: 112.5 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.619e-05/0.9273, allocations: 15.23 kB / 0.5749 GB, free: 112.5 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0153/0.9426, allocations: 10.35 MB / 0.585 GB, free: 103.2 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.283e-05/0.9426, allocations: 7.984 kB / 0.5851 GB, free: 103.2 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0017/0.9443, allocations: 403.9 kB / 0.5854 GB, free: 102.8 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002381/0.9467, allocations: 1.035 MB / 0.5864 GB, free: 101.7 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003047/0.9471, allocations: 71.97 kB / 0.5865 GB, free: 101.6 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01411/0.9612, allocations: 18.82 MB / 0.6049 GB, free: 81.89 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.959e-06/0.9612, allocations: 12.12 kB / 0.6049 GB, free: 81.88 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008686/0.9699, allocations: 6.439 MB / 0.6112 GB, free: 75.24 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002045/0.972, allocations: 0.7541 MB / 0.6119 GB, free: 74.46 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000868/0.9729, allocations: 64.38 kB / 0.612 GB, free: 74.4 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00195/0.9748, allocations: 131.9 kB / 0.6121 GB, free: 74.27 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004822/0.9753, allocations: 201.7 kB / 0.6123 GB, free: 74.07 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001502/0.9755, allocations: 79.97 kB / 0.6124 GB, free: 74 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003074/0.9786, allocations: 2.315 MB / 0.6146 GB, free: 71.7 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.9786, allocations: 0 / 0.6146 GB, free: 71.7 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004239/0.9828, allocations: 1.167 MB / 0.6158 GB, free: 70.53 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 (not torn): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 7 systems {(1,8,100.0%), (4,33,93.8%), (1,1,100.0%), (1,1,100.0%), (1,8,100.0%), (2,12,100.0%), (2,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.008716/0.9916, allocations: 7.129 MB / 0.6227 GB, free: 63.2 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01103/1.003, allocations: 5.885 MB / 0.6285 GB, free: 57.22 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.504e-06/1.003, allocations: 0 / 0.6285 GB, free: 57.22 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003791/1.006, allocations: 2.949 MB / 0.6314 GB, free: 54.18 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004187/1.011, allocations: 1.033 MB / 0.6324 GB, free: 53.17 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07887/1.09, allocations: 48.68 MB / 0.6799 GB, free: 15.68 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00676/1.096, allocations: 4.236 MB / 0.6841 GB, free: 11.41 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.005077/1.102, allocations: 0.8367 MB / 0.6849 GB, free: 10.57 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005559/1.107, allocations: 2.553 MB / 0.6874 GB, free: 8.016 MB / 462.1 MB Notification: Performance of SimCode: time 9.92e-07/1.107, allocations: 0 / 0.6874 GB, free: 8.016 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4121/1.519, allocations: 102.1 MB / 0.787 GB, free: 105.4 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.72/13.23, allocations: 16.34 kB / 0.7871 GB, free: 105.4 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 & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase_res.csv --start-time 0 --stop-time 1.5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 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) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase_res.csv","/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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches