Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_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.SMPM_Inverter_Polyphase,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_ComparisonPolyphase_SMPM_Inverter_Polyphase",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_ComparisonPolyphase_SMPM_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.001199/0.001204, allocations: 118.8 kB / 17.79 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001303/0.001304, allocations: 201.2 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.402/1.402, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001162/0.001162, allocations: 59.89 kB / 358.3 MB, free: 13.39 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2538/0.255, allocations: 50.54 MB / 408.8 MB, free: 1.547 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase): time 0.0269/0.2819, allocations: 27.13 MB / 435.9 MB, free: 6.312 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01507/0.297, allocations: 7.515 MB / 443.4 MB, free: 14.77 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005078/0.3022, allocations: 175.4 kB / 443.6 MB, free: 14.59 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005181/0.3074, allocations: 1.773 MB / 445.4 MB, free: 12.81 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008178/0.3156, allocations: 2.344 MB / 447.7 MB, free: 10.45 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00458/0.3202, allocations: 1.554 MB / 449.3 MB, free: 8.902 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01222/0.3325, allocations: 8.734 MB / 458 MB, free: 140 kB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009304/0.3418, allocations: 7.441 MB / 465.5 MB, free: 8.602 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005735/0.3476, allocations: 4.097 MB / 469.6 MB, free: 4.492 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007762/0.3554, allocations: 4.928 MB / 474.5 MB, free: 15.54 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002513/0.3579, allocations: 1.141 MB / 475.6 MB, free: 14.4 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003665/0.3616, allocations: 1.371 MB / 477 MB, free: 13.04 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002619/0.3642, allocations: 2.548 MB / 479.5 MB, free: 10.48 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006988/0.3712, allocations: 4.788 MB / 484.3 MB, free: 5.672 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01713/0.3884, allocations: 14.92 MB / 499.2 MB, free: 6.703 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.274e-06/0.3884, allocations: 0 / 499.2 MB, free: 6.703 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.365e-06/0.3885, allocations: 0 / 499.2 MB, free: 6.703 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0004572/0.3889, allocations: 4 kB / 499.2 MB, free: 6.699 MB / 414.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.03015/0.4191, allocations: 9.404 MB / 0.4967 GB, free: 13.2 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.421e-05/0.4192, allocations: 12.03 kB / 0.4967 GB, free: 13.18 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003055/0.4222, allocations: 0.9882 MB / 0.4977 GB, free: 12.18 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01092/0.4332, allocations: 1.767 MB / 0.4994 GB, free: 10.41 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01362/0.4468, allocations: 5.135 MB / 0.5044 GB, free: 5.199 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006527/0.4475, allocations: 0.5303 MB / 0.505 GB, free: 4.668 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002426/0.4499, allocations: 0.7108 MB / 0.5057 GB, free: 3.957 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02566/0.4756, allocations: 9.785 MB / 0.5152 GB, free: 10.09 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002974/0.476, allocations: 15.84 kB / 0.5152 GB, free: 10.08 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002169/0.4781, allocations: 296 kB / 0.5155 GB, free: 9.789 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003946/0.4786, allocations: 354.6 kB / 0.5158 GB, free: 9.441 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.018/0.4966, allocations: 8.311 MB / 0.524 GB, free: 1.121 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.441/0.9376, allocations: 30.48 MB / 0.5537 GB, free: 100.9 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0126/0.9502, allocations: 17.24 MB / 0.5706 GB, free: 86.12 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006657/0.9569, allocations: 3.788 MB / 0.5743 GB, free: 84.91 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01441/0.9714, allocations: 9.257 MB / 0.5833 GB, free: 78.77 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.571e-05/0.9715, allocations: 64.97 kB / 0.5834 GB, free: 78.71 MB / 462.1 MB Notification: Performance of pre-optimization done (n=281): time 4.729e-06/0.9715, allocations: 4 kB / 0.5834 GB, free: 78.7 MB / 462.1 MB Notification: Performance of matching and sorting (n=289): time 0.02297/0.9945, allocations: 12.38 MB / 0.5955 GB, free: 69.68 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.451e-05/0.9945, allocations: 85.69 kB / 0.5955 GB, free: 69.58 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00466/0.9992, allocations: 3.809 MB / 0.5993 GB, free: 65.75 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003056/0.9995, allocations: 73.7 kB / 0.5993 GB, free: 65.68 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001346/1.001, allocations: 3.25 MB / 0.6025 GB, free: 62.4 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000595/1.001, allocations: 0.9956 MB / 0.6035 GB, free: 61.41 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008061/1.002, allocations: 0.6491 MB / 0.6041 GB, free: 60.76 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 3.494e-05/1.002, allocations: 301.1 kB / 0.6044 GB, free: 60.46 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002017/1.004, allocations: 1.542 MB / 0.6059 GB, free: 58.92 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002359/1.007, allocations: 2.678 MB / 0.6085 GB, free: 55.74 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004594/1.011, allocations: 4.506 MB / 0.6129 GB, free: 50.71 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.589e-05/1.011, allocations: 12 kB / 0.6129 GB, free: 50.7 MB / 462.1 MB Notification: Performance of matching and sorting (n=476) (initialization): time 0.007367/1.019, allocations: 5.353 MB / 0.6182 GB, free: 45.27 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.9e-05/1.019, allocations: 20 kB / 0.6182 GB, free: 45.25 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.51e-05/1.019, allocations: 39.94 kB / 0.6182 GB, free: 45.21 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001279/1.02, allocations: 0.5712 MB / 0.6188 GB, free: 44.62 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003024/1.023, allocations: 0.8541 MB / 0.6196 GB, free: 43.76 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007061/1.03, allocations: 9.449 MB / 0.6288 GB, free: 33.76 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003516/1.034, allocations: 175.7 kB / 0.629 GB, free: 33.59 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000403/1.034, allocations: 160 kB / 0.6292 GB, free: 33.43 MB / 462.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 (446): * Single equations (assignments): 440 * 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.003706/1.038, allocations: 2.16 MB / 0.6313 GB, free: 31.26 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008285/1.039, allocations: 410.9 kB / 0.6317 GB, free: 30.85 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007328/1.046, allocations: 4.808 MB / 0.6364 GB, free: 25.93 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.697e-05/1.046, allocations: 28 kB / 0.6364 GB, free: 25.9 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.004e-05/1.046, allocations: 23.92 kB / 0.6364 GB, free: 25.88 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.353e-05/1.046, allocations: 11.95 kB / 0.6364 GB, free: 25.87 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01636/1.063, allocations: 11.01 MB / 0.6472 GB, free: 14.7 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.255e-05/1.063, allocations: 4.531 kB / 0.6472 GB, free: 14.7 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001855/1.065, allocations: 439.6 kB / 0.6476 GB, free: 14.27 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002317/1.067, allocations: 1.038 MB / 0.6486 GB, free: 13.21 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001911/1.067, allocations: 79.97 kB / 0.6487 GB, free: 13.13 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01645/1.083, allocations: 18.94 MB / 0.6672 GB, free: 9.238 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.573e-06/1.084, allocations: 11.94 kB / 0.6672 GB, free: 9.227 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01125/1.095, allocations: 6.867 MB / 0.6739 GB, free: 2.148 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002141/1.097, allocations: 0.8239 MB / 0.6747 GB, free: 1.301 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005885/1.098, allocations: 67.98 kB / 0.6748 GB, free: 1.234 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001941/1.1, allocations: 139.9 kB / 0.6749 GB, free: 1.098 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005165/1.1, allocations: 217.7 kB / 0.6751 GB, free: 0.8828 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001802/1.1, allocations: 83.98 kB / 0.6752 GB, free: 0.8008 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.004235/1.104, allocations: 2.59 MB / 0.6777 GB, free: 14.2 MB / 494.1 MB Notification: Performance of sort global known variables: time 3.51e-07/1.104, allocations: 0 / 0.6777 GB, free: 14.2 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.004569/1.109, allocations: 1.237 MB / 0.6789 GB, free: 12.97 MB / 494.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 (217): * Single equations (assignments): 210 * 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,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.01164/1.121, allocations: 7.535 MB / 0.6863 GB, free: 5.219 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.007862/1.129, allocations: 4.549 MB / 0.6907 GB, free: 0.5547 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.171e-05/1.129, allocations: 4 kB / 0.6907 GB, free: 0.5508 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004984/1.134, allocations: 3.059 MB / 0.6937 GB, free: 13.4 MB / 0.4982 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006382/1.14, allocations: 1.189 MB / 0.6949 GB, free: 12.23 MB / 0.4982 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2767/1.417, allocations: 43.06 MB / 0.7369 GB, free: 181.7 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006275/1.423, allocations: 4.399 MB / 0.7412 GB, free: 180.9 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.003007/1.426, allocations: 0.9049 MB / 0.7421 GB, free: 180.8 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003092/1.429, allocations: 2.776 MB / 0.7448 GB, free: 180.1 MB / 0.5294 GB Notification: Performance of SimCode: time 8.11e-07/1.429, allocations: 0 / 0.7448 GB, free: 180.1 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1548/1.584, allocations: 111.7 MB / 0.8539 GB, free: 82.64 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.04/19.62, allocations: 13.73 kB / 0.8539 GB, free: 82.63 MB / 0.5294 GB (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_ComparisonPolyphase_SMPM_Inverter_Polyphase_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_ComparisonPolyphase_SMPM_Inverter_Polyphase.fmu > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_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/SMPM_Inverter_Polyphase/SMPM_Inverter_Polyphase.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches