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.001254/0.001254, allocations: 111.4 kB / 17.28 MB, free: 6.199 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.001289/0.00129, allocations: 189.3 kB / 18.2 MB, free: 5.277 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.487/1.487, allocations: 205.1 MB / 224 MB, free: 12.44 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.001159/0.001159, allocations: 48.14 kB / 280.3 MB, free: 3.383 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1078/0.109, allocations: 46.62 MB / 326.9 MB, free: 4.691 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase): time 0.02553/0.1345, allocations: 24.96 MB / 351.8 MB, free: 11.61 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01607/0.1507, allocations: 6.943 MB / 358.8 MB, free: 4.645 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006827/0.1575, allocations: 147.4 kB / 358.9 MB, free: 4.5 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00526/0.1629, allocations: 1.477 MB / 360.4 MB, free: 3.016 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01019/0.1731, allocations: 2.02 MB / 362.4 MB, free: 0.9844 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004595/0.1777, allocations: 1.392 MB / 363.8 MB, free: 15.59 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01384/0.1916, allocations: 8.729 MB / 372.5 MB, free: 6.816 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.222/0.4136, allocations: 7.281 MB / 379.8 MB, free: 15.73 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01002/0.4237, allocations: 3.796 MB / 383.6 MB, free: 15.43 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01137/0.4351, allocations: 4.571 MB / 388.2 MB, free: 14.64 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005352/0.4405, allocations: 1.125 MB / 389.3 MB, free: 14.64 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006456/0.447, allocations: 1.343 MB / 390.7 MB, free: 14.64 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003702/0.4507, allocations: 2.51 MB / 393.2 MB, free: 14.36 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01477/0.4655, allocations: 4.715 MB / 397.9 MB, free: 13.21 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02085/0.4864, allocations: 14.55 MB / 412.4 MB, free: 4.992 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.03e-05/0.4864, allocations: 0 / 412.4 MB, free: 4.992 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.555e-06/0.4865, allocations: 0 / 412.4 MB, free: 4.992 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0006035/0.4871, allocations: 0 / 412.4 MB, free: 4.992 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.03625/0.5233, allocations: 9.22 MB / 421.7 MB, free: 15.04 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.26e-05/0.5234, allocations: 12.38 kB / 421.7 MB, free: 15.04 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005426/0.5289, allocations: 0.9852 MB / 422.7 MB, free: 14.32 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01252/0.5414, allocations: 1.747 MB / 424.4 MB, free: 13.48 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01545/0.5569, allocations: 4.599 MB / 429 MB, free: 9.812 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007757/0.5577, allocations: 0.5374 MB / 429.5 MB, free: 9.277 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003945/0.5617, allocations: 0.7136 MB / 430.3 MB, free: 8.57 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03805/0.5998, allocations: 9.778 MB / 440 MB, free: 14.73 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005399/0.6004, allocations: 15.47 kB / 440.1 MB, free: 14.72 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003318/0.6037, allocations: 291.9 kB / 440.3 MB, free: 14.44 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005404/0.6043, allocations: 358.6 kB / 440.7 MB, free: 14.09 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02684/0.6311, allocations: 8.289 MB / 449 MB, free: 5.797 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07934/0.7105, allocations: 30.48 MB / 479.5 MB, free: 7.285 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02054/0.7311, allocations: 16.08 MB / 495.5 MB, free: 5.469 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00846/0.7396, allocations: 3.038 MB / 498.6 MB, free: 2.414 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02219/0.7619, allocations: 8.088 MB / 0.4948 GB, free: 10.29 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.789e-05/0.762, allocations: 72.44 kB / 0.4949 GB, free: 10.21 MB / 414.1 MB Notification: Performance of pre-optimization done (n=281): time 5.46e-06/0.762, allocations: 0 / 0.4949 GB, free: 10.21 MB / 414.1 MB Notification: Performance of matching and sorting (n=289): time 0.02912/0.7911, allocations: 11.57 MB / 0.5062 GB, free: 14.39 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.131e-05/0.7913, allocations: 81.69 kB / 0.5062 GB, free: 14.3 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01017/0.8014, allocations: 3.641 MB / 0.5098 GB, free: 10.68 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001052/0.8025, allocations: 77.64 kB / 0.5099 GB, free: 10.59 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.004087/0.8066, allocations: 3.187 MB / 0.513 GB, free: 7.379 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001838/0.8085, allocations: 0.9928 MB / 0.5139 GB, free: 6.395 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002254/0.8108, allocations: 0.6491 MB / 0.5146 GB, free: 5.738 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001825/0.811, allocations: 305.1 kB / 0.5149 GB, free: 5.438 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003542/0.8146, allocations: 1.479 MB / 0.5163 GB, free: 3.957 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004294/0.8189, allocations: 2.623 MB / 0.5189 GB, free: 0.8555 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007514/0.8264, allocations: 4.39 MB / 0.5232 GB, free: 12.09 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.932e-05/0.8265, allocations: 12 kB / 0.5232 GB, free: 12.07 MB / 446.1 MB Notification: Performance of matching and sorting (n=476) (initialization): time 0.01082/0.8373, allocations: 5.013 MB / 0.5281 GB, free: 7.203 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.545e-05/0.8374, allocations: 24.69 kB / 0.5281 GB, free: 7.18 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.967e-05/0.8375, allocations: 36 kB / 0.5281 GB, free: 7.145 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001162/0.8387, allocations: 408.3 kB / 0.5285 GB, free: 6.73 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003519/0.8422, allocations: 0.8631 MB / 0.5294 GB, free: 5.922 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2774/1.12, allocations: 7.971 MB / 0.5371 GB, free: 149.5 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004206/1.124, allocations: 169.4 kB / 0.5373 GB, free: 149.5 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006499/1.125, allocations: 169.1 kB / 0.5375 GB, free: 149.5 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.005424/1.13, allocations: 2.134 MB / 0.5396 GB, free: 149.4 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001146/1.131, allocations: 401.4 kB / 0.5399 GB, free: 149.4 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007744/1.139, allocations: 4.458 MB / 0.5443 GB, free: 148 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.969e-05/1.139, allocations: 31.88 kB / 0.5443 GB, free: 148 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.227e-05/1.139, allocations: 16.75 kB / 0.5443 GB, free: 148 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.755e-05/1.139, allocations: 13.3 kB / 0.5443 GB, free: 148 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01864/1.158, allocations: 10.48 MB / 0.5546 GB, free: 143.4 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.51e-05/1.158, allocations: 3.969 kB / 0.5546 GB, free: 143.4 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00178/1.16, allocations: 450.9 kB / 0.555 GB, free: 143.4 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00223/1.162, allocations: 0.8842 MB / 0.5559 GB, free: 143.2 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003573/1.162, allocations: 77.73 kB / 0.556 GB, free: 143.1 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01607/1.178, allocations: 17.65 MB / 0.5732 GB, free: 129.1 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.86e-06/1.178, allocations: 7.875 kB / 0.5732 GB, free: 129.1 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01166/1.19, allocations: 6.421 MB / 0.5795 GB, free: 126.2 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002851/1.193, allocations: 0.7957 MB / 0.5802 GB, free: 125.9 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001683/1.195, allocations: 67.19 kB / 0.5803 GB, free: 125.8 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002709/1.197, allocations: 141 kB / 0.5804 GB, free: 125.8 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006413/1.198, allocations: 215.8 kB / 0.5806 GB, free: 125.7 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002872/1.198, allocations: 89.72 kB / 0.5807 GB, free: 125.7 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.005678/1.204, allocations: 2.467 MB / 0.5831 GB, free: 124.8 MB / 446.1 MB Notification: Performance of sort global known variables: time 4.31e-07/1.204, allocations: 1.641 kB / 0.5831 GB, free: 124.8 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.006135/1.21, allocations: 1.216 MB / 0.5843 GB, free: 124.6 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.01061/1.221, allocations: 7.094 MB / 0.5913 GB, free: 118.1 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01296/1.234, allocations: 6.162 MB / 0.5973 GB, free: 112.1 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.285e-05/1.234, allocations: 4 kB / 0.5973 GB, free: 112.1 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004537/1.238, allocations: 2.977 MB / 0.6002 GB, free: 109 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007909/1.246, allocations: 1.128 MB / 0.6013 GB, free: 107.9 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1096/1.356, allocations: 55.02 MB / 0.655 GB, free: 47.56 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006368/1.362, allocations: 4.351 MB / 0.6593 GB, free: 43.17 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003675/1.366, allocations: 0.8942 MB / 0.6601 GB, free: 42.27 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003418/1.369, allocations: 2.733 MB / 0.6628 GB, free: 39.54 MB / 446.1 MB Notification: Performance of SimCode: time 1.092e-06/1.369, allocations: 0 / 0.6628 GB, free: 39.54 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3367/1.706, allocations: 107.1 MB / 0.7674 GB, free: 104.5 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001454/1.706, allocations: 263.1 kB / 0.7676 GB, free: 104.1 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.852/6.558, allocations: 1.547 kB / 0.7676 GB, free: 104.1 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