Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase.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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.SMPM_Inverter_MultiPhase,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_Inverter_MultiPhase",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_Inverter_MultiPhase",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.0009201/0.0009201, allocations: 99.77 kB / 17.3 MB, free: 6.395 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.001119/0.001119, allocations: 177.8 kB / 18.2 MB, free: 5.555 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.353/1.353, allocations: 205.4 MB / 224.4 MB, free: 13.07 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004763/0.0004765, allocations: 12.94 kB / 281.5 MB, free: 3.312 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1126/0.1131, allocations: 47.59 MB / 329.1 MB, free: 3.656 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase): time 0.02481/0.1379, allocations: 23.95 MB / 353 MB, free: 11.6 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01824/0.1562, allocations: 6.924 MB / 359.9 MB, free: 4.648 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006981/0.1633, allocations: 139.4 kB / 360.1 MB, free: 4.512 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007575/0.1709, allocations: 1.461 MB / 361.5 MB, free: 3.043 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01311/0.1841, allocations: 2.028 MB / 363.6 MB, free: 1.004 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006684/0.1908, allocations: 1.377 MB / 364.9 MB, free: 15.62 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01823/0.2091, allocations: 8.963 MB / 373.9 MB, free: 6.621 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01335/0.2225, allocations: 5.991 MB / 379.9 MB, free: 0.5469 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2524/0.475, allocations: 2.777 MB / 382.7 MB, free: 16.66 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006943/0.482, allocations: 3.682 MB / 386.4 MB, free: 15.88 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001507/0.4835, allocations: 466.3 kB / 386.8 MB, free: 15.88 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003007/0.4865, allocations: 0.6724 MB / 387.5 MB, free: 15.88 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00191/0.4885, allocations: 1.718 MB / 389.2 MB, free: 15.6 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006568/0.495, allocations: 3.867 MB / 393.1 MB, free: 14.42 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01327/0.5083, allocations: 13.75 MB / 406.8 MB, free: 8.598 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.39e-06/0.5084, allocations: 0 / 406.8 MB, free: 8.598 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.186e-06/0.5084, allocations: 0 / 406.8 MB, free: 8.598 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0004078/0.5088, allocations: 0 / 406.8 MB, free: 8.598 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: 1932 * Number of variables: 1932 Notification: Performance of Generate backend data structure: time 0.02099/0.5298, allocations: 7.737 MB / 414.6 MB, free: 4.461 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.828e-05/0.5299, allocations: 10.86 kB / 414.6 MB, free: 4.457 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002925/0.5328, allocations: 0.992 MB / 415.6 MB, free: 4.195 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0087/0.5415, allocations: 1.747 MB / 417.3 MB, free: 3.48 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008233/0.5498, allocations: 4.604 MB / 421.9 MB, free: 0.9727 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003959/0.5502, allocations: 0.5419 MB / 422.4 MB, free: 0.7266 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001342/0.5515, allocations: 0.7068 MB / 423.2 MB, free: 492 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02062/0.5722, allocations: 9.809 MB / 433 MB, free: 6.613 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001495/0.5724, allocations: 7.906 kB / 433 MB, free: 6.605 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007206/0.5731, allocations: 295.3 kB / 433.3 MB, free: 6.32 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003404/0.5734, allocations: 354.6 kB / 433.6 MB, free: 5.973 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01776/0.5912, allocations: 8.317 MB / 441.9 MB, free: 13.66 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06286/0.6541, allocations: 30.65 MB / 472.6 MB, free: 14.96 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01741/0.6716, allocations: 16.09 MB / 488.7 MB, free: 13.13 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006031/0.6776, allocations: 3.075 MB / 491.7 MB, free: 10.04 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.018/0.6957, allocations: 8.11 MB / 499.9 MB, free: 1.891 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.331e-05/0.6958, allocations: 64.34 kB / 499.9 MB, free: 1.82 MB / 398.1 MB Notification: Performance of pre-optimization done (n=281): time 5.461e-06/0.6958, allocations: 0 / 499.9 MB, free: 1.82 MB / 398.1 MB Notification: Performance of matching and sorting (n=289): time 0.02623/0.722, allocations: 11.71 MB / 0.4996 GB, free: 5.867 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.9e-05/0.7221, allocations: 81.69 kB / 0.4997 GB, free: 5.773 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008115/0.7303, allocations: 3.645 MB / 0.5033 GB, free: 2.148 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004686/0.7308, allocations: 69.7 kB / 0.5033 GB, free: 2.074 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002469/0.7333, allocations: 3.184 MB / 0.5064 GB, free: 14.86 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001162/0.7344, allocations: 0.9965 MB / 0.5074 GB, free: 13.88 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007532/0.7352, allocations: 293.6 kB / 0.5077 GB, free: 13.58 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001026/0.7353, allocations: 309.1 kB / 0.508 GB, free: 13.28 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003133/0.7385, allocations: 1.495 MB / 0.5095 GB, free: 11.78 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003899/0.7424, allocations: 2.642 MB / 0.512 GB, free: 8.66 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007167/0.7496, allocations: 4.416 MB / 0.5163 GB, free: 3.859 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.297e-05/0.7496, allocations: 12 kB / 0.5164 GB, free: 3.848 MB / 430.1 MB Notification: Performance of matching and sorting (n=476) (initialization): time 0.01047/0.7601, allocations: 5.048 MB / 0.5213 GB, free: 14.95 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.339e-05/0.7602, allocations: 23.94 kB / 0.5213 GB, free: 14.92 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.888e-05/0.7603, allocations: 39.98 kB / 0.5213 GB, free: 14.88 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00115/0.7614, allocations: 391.6 kB / 0.5217 GB, free: 14.48 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003329/0.7648, allocations: 0.8715 MB / 0.5226 GB, free: 13.67 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007047/0.7718, allocations: 7.366 MB / 0.5298 GB, free: 5.824 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003966/0.7758, allocations: 180 kB / 0.5299 GB, free: 5.648 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004347/0.7763, allocations: 168 kB / 0.5301 GB, free: 5.484 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 162 * 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 (451): * Single equations (assignments): 445 * 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,5,100.0%), (1,1,100.0%), (3,14,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.005954/0.7822, allocations: 2.134 MB / 0.5322 GB, free: 3.398 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001146/0.7834, allocations: 403.1 kB / 0.5326 GB, free: 3 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2753/1.059, allocations: 4.492 MB / 0.537 GB, free: 152.7 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.375e-05/1.059, allocations: 28.88 kB / 0.537 GB, free: 152.7 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.539e-05/1.059, allocations: 11.5 kB / 0.537 GB, free: 152.7 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.645e-05/1.059, allocations: 13.41 kB / 0.537 GB, free: 152.7 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02294/1.082, allocations: 10.5 MB / 0.5473 GB, free: 149.9 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.928e-05/1.082, allocations: 4.219 kB / 0.5473 GB, free: 149.9 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002023/1.084, allocations: 447.2 kB / 0.5477 GB, free: 149.9 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002464/1.086, allocations: 0.8752 MB / 0.5485 GB, free: 149.6 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002176/1.087, allocations: 79.55 kB / 0.5486 GB, free: 149.5 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01551/1.102, allocations: 16.22 MB / 0.5645 GB, free: 136.7 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.829e-06/1.102, allocations: 3.969 kB / 0.5645 GB, free: 136.7 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009921/1.112, allocations: 6.475 MB / 0.5708 GB, free: 133.8 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002745/1.115, allocations: 0.8107 MB / 0.5716 GB, free: 133.5 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007614/1.116, allocations: 68.25 kB / 0.5716 GB, free: 133.5 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001883/1.118, allocations: 155.5 kB / 0.5718 GB, free: 133.4 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000606/1.118, allocations: 216.5 kB / 0.572 GB, free: 133.4 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001601/1.118, allocations: 85.91 kB / 0.5721 GB, free: 133.4 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003945/1.122, allocations: 2.468 MB / 0.5745 GB, free: 132.4 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.3e-07/1.122, allocations: 0 / 0.5745 GB, free: 132.4 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00434/1.127, allocations: 1.215 MB / 0.5757 GB, free: 132.3 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 18 * Number of states: 14 (vfController3.x,smpmM.inertiaRotor.w,smpmM.stator.core.Phi.re,smpmM.stator.core.Phi.im,smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smpm3.inertiaRotor.w,smpm3.stator.core.Phi.re,smpm3.stator.core.Phi.im,smpm3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpm3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,loadInertiaM.phi,loadInertia3.phi,vfController.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 (220): * Single equations (assignments): 213 * 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,5,100.0%), (4,33,93.8%), (1,1,100.0%), (1,1,100.0%), (1,8,100.0%), (2,13,100.0%), (2,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.009595/1.136, allocations: 7.13 MB / 0.5826 GB, free: 127.1 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006741/1.143, allocations: 4.387 MB / 0.5869 GB, free: 123 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.313e-05/1.143, allocations: 9.719 kB / 0.5869 GB, free: 123 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004283/1.147, allocations: 3.007 MB / 0.5899 GB, free: 120.1 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008198/1.156, allocations: 1.065 MB / 0.5909 GB, free: 119.1 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1135/1.269, allocations: 55.32 MB / 0.6449 GB, free: 58.58 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006767/1.276, allocations: 4.351 MB / 0.6492 GB, free: 54.19 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.004546/1.281, allocations: 0.8942 MB / 0.6501 GB, free: 53.29 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005525/1.286, allocations: 2.733 MB / 0.6527 GB, free: 50.56 MB / 446.1 MB Notification: Performance of SimCode: time 1.453e-06/1.286, allocations: 0 / 0.6527 GB, free: 50.56 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3396/1.626, allocations: 103.5 MB / 0.7538 GB, free: 117.8 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001325/1.626, allocations: 263.2 kB / 0.7541 GB, free: 117.5 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.633/6.259, allocations: 0 / 0.7541 GB, free: 117.5 MB / 446.1 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_Inverter_MultiPhase_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_Inverter_MultiPhase.fmu > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SMPM_Inverter_MultiPhase/SMPM_Inverter_MultiPhase.csv","../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches