Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.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.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001419/0.001419, allocations: 117.7 kB / 17.79 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001575/0.001575, allocations: 199.8 kB / 18.73 MB, free: 4.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.418/1.418, allocations: 227.4 MB / 246.9 MB, free: 10.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001314/0.001314, allocations: 55.91 kB / 358.2 MB, free: 13.4 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2615/0.2628, allocations: 50.55 MB / 408.8 MB, free: 1.543 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.0281/0.2909, allocations: 28.61 MB / 437.4 MB, free: 4.805 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01765/0.3086, allocations: 8.485 MB / 445.9 MB, free: 12.29 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006458/0.3152, allocations: 215.4 kB / 446.1 MB, free: 12.08 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01784/0.333, allocations: 8.163 MB / 454.3 MB, free: 3.902 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009128/0.3422, allocations: 2.789 MB / 457.1 MB, free: 1.102 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005337/0.3475, allocations: 1.876 MB / 458.9 MB, free: 15.23 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01206/0.3596, allocations: 10.03 MB / 469 MB, free: 5.156 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03155/0.3912, allocations: 21.35 MB / 490.3 MB, free: 15.66 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008573/0.3998, allocations: 5.369 MB / 495.7 MB, free: 10.29 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009336/0.4092, allocations: 6.077 MB / 0.49 GB, free: 4.188 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003922/0.4132, allocations: 1.543 MB / 0.4915 GB, free: 2.645 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0054/0.4186, allocations: 1.925 MB / 0.4934 GB, free: 0.7188 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00443/0.4231, allocations: 2.977 MB / 0.4963 GB, free: 13.73 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008924/0.4321, allocations: 5.848 MB / 0.502 GB, free: 7.859 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02194/0.454, allocations: 20.64 MB / 0.5222 GB, free: 3.16 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.344e-06/0.4541, allocations: 0 / 0.5222 GB, free: 3.16 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.4541, allocations: 0 / 0.5222 GB, free: 3.16 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0005317/0.4546, allocations: 4 kB / 0.5222 GB, free: 3.156 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2599 * Number of variables: 2599 Notification: Performance of Generate backend data structure: time 0.03636/0.491, allocations: 11.87 MB / 0.5338 GB, free: 7.188 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.656e-05/0.4911, allocations: 15.97 kB / 0.5338 GB, free: 7.172 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005424/0.4965, allocations: 1.536 MB / 0.5353 GB, free: 5.625 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.4455/0.942, allocations: 5.636 MB / 0.5408 GB, free: 111.4 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01495/0.957, allocations: 6.304 MB / 0.5469 GB, free: 108.8 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005194/0.9576, allocations: 0.7052 MB / 0.5476 GB, free: 108.5 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003103/0.9607, allocations: 0.9214 MB / 0.5485 GB, free: 108.2 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03059/0.9913, allocations: 15.08 MB / 0.5632 GB, free: 101.3 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003797/0.9918, allocations: 27.55 kB / 0.5633 GB, free: 101.3 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002518/0.9943, allocations: 390.2 kB / 0.5636 GB, free: 101 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000443/0.9947, allocations: 0.5176 MB / 0.5641 GB, free: 100.7 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02326/1.018, allocations: 13.75 MB / 0.5776 GB, free: 86.95 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06401/1.082, allocations: 47.56 MB / 0.624 GB, free: 38.48 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01513/1.097, allocations: 28.59 MB / 0.6519 GB, free: 6.188 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004062/1.101, allocations: 3.085 MB / 0.6549 GB, free: 3.094 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004617/1.102, allocations: 329.5 kB / 0.6553 GB, free: 2.73 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.952e-05/1.102, allocations: 73.56 kB / 0.6553 GB, free: 2.648 MB / 462.1 MB Notification: Performance of pre-optimization done (n=384): time 5.66e-06/1.102, allocations: 0 / 0.6553 GB, free: 2.648 MB / 462.1 MB Notification: Performance of matching and sorting (n=392): time 0.03025/1.132, allocations: 14.77 MB / 0.6698 GB, free: 3.793 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.988e-05/1.132, allocations: 98.42 kB / 0.6699 GB, free: 3.684 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005997/1.138, allocations: 3.603 MB / 0.6734 GB, free: 88 kB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004873/1.139, allocations: 89.19 kB / 0.6735 GB, free: 0 / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002548/1.141, allocations: 4.049 MB / 0.6774 GB, free: 11.93 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001403/1.143, allocations: 1.345 MB / 0.6787 GB, free: 10.59 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002274/1.145, allocations: 1.156 MB / 0.6799 GB, free: 9.426 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 8.75e-05/1.145, allocations: 309.1 kB / 0.6802 GB, free: 9.121 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003961/1.149, allocations: 2.592 MB / 0.6827 GB, free: 6.523 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006096/1.155, allocations: 5.08 MB / 0.6876 GB, free: 276 kB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01033/1.166, allocations: 8.344 MB / 0.6958 GB, free: 6.738 MB / 0.4982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.664e-05/1.166, allocations: 24 kB / 0.6958 GB, free: 6.715 MB / 0.4982 GB Notification: Performance of matching and sorting (n=769) (initialization): time 0.01476/1.181, allocations: 8.635 MB / 0.7042 GB, free: 14.05 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 8.856e-05/1.181, allocations: 47.98 kB / 0.7043 GB, free: 14 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001322/1.181, allocations: 80 kB / 0.7044 GB, free: 13.92 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002398/1.183, allocations: 0.8534 MB / 0.7052 GB, free: 13.07 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004562/1.188, allocations: 1.369 MB / 0.7065 GB, free: 11.7 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01056/1.198, allocations: 7.677 MB / 0.714 GB, free: 3.879 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004058/1.202, allocations: 331.2 kB / 0.7144 GB, free: 3.555 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009239/1.203, allocations: 304 kB / 0.7146 GB, free: 3.258 MB / 0.5138 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 378 * 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 (722): * Single equations (assignments): 721 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(8,40,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.006094/1.21, allocations: 3.509 MB / 0.7181 GB, free: 15.73 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001128/1.211, allocations: 415 kB / 0.7185 GB, free: 15.32 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01105/1.222, allocations: 5.984 MB / 0.7243 GB, free: 9.301 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.844e-05/1.222, allocations: 40 kB / 0.7243 GB, free: 9.262 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.617e-05/1.222, allocations: 8 kB / 0.7244 GB, free: 9.254 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.61e-05/1.222, allocations: 19.92 kB / 0.7244 GB, free: 9.234 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02873/1.251, allocations: 14.95 MB / 0.739 GB, free: 10.18 MB / 0.5451 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.999e-05/1.251, allocations: 4 kB / 0.739 GB, free: 10.17 MB / 0.5451 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002706/1.253, allocations: 0.6904 MB / 0.7397 GB, free: 9.48 MB / 0.5451 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002034/1.256, allocations: 0.7099 MB / 0.7404 GB, free: 8.77 MB / 0.5451 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004459/1.256, allocations: 91.97 kB / 0.7404 GB, free: 8.68 MB / 0.5451 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008911/1.265, allocations: 6.71 MB / 0.747 GB, free: 1.832 MB / 0.5451 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.813e-06/1.265, allocations: 12.03 kB / 0.747 GB, free: 1.82 MB / 0.5451 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.214/1.479, allocations: 8.752 MB / 0.7555 GB, free: 184.1 MB / 0.5451 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002391/1.481, allocations: 0.8808 MB / 0.7564 GB, free: 183.7 MB / 0.5451 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007246/1.482, allocations: 76.22 kB / 0.7565 GB, free: 183.7 MB / 0.5451 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001827/1.484, allocations: 185.7 kB / 0.7567 GB, free: 183.6 MB / 0.5451 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004844/1.484, allocations: 264.4 kB / 0.7569 GB, free: 183.6 MB / 0.5451 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002104/1.485, allocations: 118 kB / 0.757 GB, free: 183.6 MB / 0.5451 GB Notification: Performance of sorting global known variables: time 0.003381/1.488, allocations: 2.413 MB / 0.7594 GB, free: 182.7 MB / 0.5451 GB Notification: Performance of sort global known variables: time 2.71e-07/1.488, allocations: 0.8125 kB / 0.7594 GB, free: 182.7 MB / 0.5451 GB Notification: Performance of remove unused functions: time 0.005339/1.493, allocations: 1.555 MB / 0.7609 GB, free: 182.5 MB / 0.5451 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 21 * Number of states: 1 (smpmQS.phiMechanical) * 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 (377): * Single equations (assignments): 376 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(8,38,59.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0114/1.505, allocations: 9.47 MB / 0.7701 GB, free: 178.3 MB / 0.5451 GB Notification: Performance of simCode: created initialization part: time 0.009749/1.515, allocations: 6.544 MB / 0.7765 GB, free: 175.9 MB / 0.5451 GB Notification: Performance of simCode: created event and clocks part: time 1.102e-05/1.515, allocations: 0 / 0.7765 GB, free: 175.9 MB / 0.5451 GB Notification: Performance of simCode: created simulation system equations: time 0.004772/1.519, allocations: 2.951 MB / 0.7794 GB, free: 174.7 MB / 0.5451 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005937/1.525, allocations: 0.9613 MB / 0.7804 GB, free: 174.4 MB / 0.5451 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08315/1.609, allocations: 52.4 MB / 0.8315 GB, free: 124.9 MB / 0.5451 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007209/1.616, allocations: 5.975 MB / 0.8374 GB, free: 118.9 MB / 0.5451 GB Notification: Performance of simCode: alias equations: time 0.004557/1.621, allocations: 1.893 MB / 0.8392 GB, free: 117 MB / 0.5451 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004547/1.625, allocations: 3.213 MB / 0.8424 GB, free: 113.8 MB / 0.5451 GB Notification: Performance of SimCode: time 9.22e-07/1.625, allocations: 0 / 0.8424 GB, free: 113.8 MB / 0.5451 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.281/3.906, allocations: 120.1 MB / 0.9596 GB, free: 158.6 MB / 0.5451 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.38/23.28, allocations: 2.75 kB / 0.9596 GB, free: 158.6 MB / 0.5451 GB (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA.fmu > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_MTPA/SMPM_MTPA.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches