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.001473/0.001473, allocations: 105.4 kB / 17.32 MB, free: 5.98 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001726/0.001726, allocations: 209.8 kB / 18.26 MB, free: 5.055 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.289/1.289, allocations: 227.4 MB / 246.4 MB, free: 9.078 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001192/0.001192, allocations: 65.11 kB / 306.6 MB, free: 0.5898 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0879/0.08911, allocations: 50.52 MB / 357.1 MB, free: 14.07 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.1746/0.2638, allocations: 28.11 MB / 385.2 MB, free: 5.785 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01529/0.2791, allocations: 8.369 MB / 393.6 MB, free: 432 kB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00526/0.2844, allocations: 204.1 kB / 393.8 MB, free: 392 kB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01798/0.3024, allocations: 7.724 MB / 401.5 MB, free: 11.8 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008848/0.3113, allocations: 2.525 MB / 404 MB, free: 9.844 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004995/0.3163, allocations: 1.747 MB / 405.8 MB, free: 8.488 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01302/0.3293, allocations: 9.99 MB / 415.8 MB, free: 1.918 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03645/0.3658, allocations: 24.67 MB / 440.4 MB, free: 9.117 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008496/0.3743, allocations: 5.407 MB / 445.8 MB, free: 3.695 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008722/0.3831, allocations: 6.117 MB / 452 MB, free: 13.56 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003445/0.3866, allocations: 1.543 MB / 453.5 MB, free: 12.02 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00546/0.392, allocations: 1.937 MB / 455.4 MB, free: 10.08 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003764/0.3958, allocations: 2.993 MB / 458.4 MB, free: 7.078 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01115/0.407, allocations: 5.848 MB / 464.3 MB, free: 1.207 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0292/0.4362, allocations: 20.53 MB / 484.8 MB, free: 12.62 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.598e-06/0.4363, allocations: 0 / 484.8 MB, free: 12.62 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.375e-06/0.4363, allocations: 0 / 484.8 MB, free: 12.62 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0006459/0.4369, allocations: 0 / 484.8 MB, free: 12.62 MB / 398.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.03892/0.4759, allocations: 11.92 MB / 496.7 MB, free: 0.6016 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.383e-05/0.476, allocations: 12.03 kB / 496.7 MB, free: 0.5898 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004927/0.4809, allocations: 1.536 MB / 498.3 MB, free: 15.04 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03106/0.512, allocations: 5.6 MB / 0.4921 GB, free: 9.426 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0138/0.5258, allocations: 6.141 MB / 0.4981 GB, free: 3.227 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000912/0.5268, allocations: 0.7104 MB / 0.4988 GB, free: 2.516 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004614/0.5314, allocations: 0.9256 MB / 0.4997 GB, free: 1.59 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03809/0.5695, allocations: 15.08 MB / 0.5144 GB, free: 2.43 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003879/0.5699, allocations: 15.91 kB / 0.5144 GB, free: 2.414 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002421/0.5724, allocations: 392 kB / 0.5148 GB, free: 2.031 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005086/0.5729, allocations: 0.5156 MB / 0.5153 GB, free: 1.512 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02542/0.5983, allocations: 13.73 MB / 0.5287 GB, free: 3.754 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.346/0.9443, allocations: 48.09 MB / 0.5757 GB, free: 102.1 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01343/0.9578, allocations: 28.57 MB / 0.6036 GB, free: 73.28 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003468/0.9613, allocations: 3.074 MB / 0.6066 GB, free: 71.72 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003416/0.9617, allocations: 323.7 kB / 0.6069 GB, free: 71.41 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.345e-05/0.9617, allocations: 84.64 kB / 0.607 GB, free: 71.34 MB / 446.1 MB Notification: Performance of pre-optimization done (n=384): time 5.601e-06/0.9617, allocations: 0 / 0.607 GB, free: 71.34 MB / 446.1 MB Notification: Performance of matching and sorting (n=392): time 0.02484/0.9866, allocations: 14.72 MB / 0.6213 GB, free: 59.04 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.26e-05/0.9867, allocations: 102.4 kB / 0.6214 GB, free: 58.93 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004967/0.9916, allocations: 3.603 MB / 0.625 GB, free: 55.33 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002403/0.9919, allocations: 85.7 kB / 0.625 GB, free: 55.24 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001527/0.9934, allocations: 4.05 MB / 0.629 GB, free: 51.17 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008275/0.9943, allocations: 1.339 MB / 0.6303 GB, free: 49.84 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001372/0.9956, allocations: 1.163 MB / 0.6314 GB, free: 48.66 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.716e-05/0.9957, allocations: 309.1 kB / 0.6317 GB, free: 48.36 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002884/0.9986, allocations: 2.584 MB / 0.6343 GB, free: 45.77 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003782/1.002, allocations: 5.085 MB / 0.6392 GB, free: 39.51 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007639/1.01, allocations: 8.337 MB / 0.6474 GB, free: 29.99 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.993e-05/1.01, allocations: 24 kB / 0.6474 GB, free: 29.96 MB / 446.1 MB Notification: Performance of matching and sorting (n=769) (initialization): time 0.0115/1.022, allocations: 8.616 MB / 0.6558 GB, free: 21.32 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.785e-05/1.022, allocations: 43.94 kB / 0.6558 GB, free: 21.27 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.098e-05/1.022, allocations: 87.98 kB / 0.6559 GB, free: 21.19 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00208/1.024, allocations: 0.8463 MB / 0.6568 GB, free: 20.34 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003839/1.028, allocations: 1.365 MB / 0.6581 GB, free: 18.97 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008306/1.036, allocations: 7.619 MB / 0.6655 GB, free: 11.21 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003353/1.039, allocations: 335.3 kB / 0.6658 GB, free: 10.88 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003935/1.04, allocations: 300 kB / 0.6661 GB, free: 10.59 MB / 446.1 MB 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.004243/1.044, allocations: 3.514 MB / 0.6696 GB, free: 7.059 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000717/1.045, allocations: 414.9 kB / 0.67 GB, free: 6.648 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008112/1.053, allocations: 5.968 MB / 0.6758 GB, free: 0.6445 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.022e-05/1.053, allocations: 43.94 kB / 0.6758 GB, free: 0.6016 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.187e-05/1.053, allocations: 8 kB / 0.6758 GB, free: 0.5938 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.097e-05/1.053, allocations: 23.86 kB / 0.6759 GB, free: 0.5703 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02599/1.079, allocations: 15.26 MB / 0.6908 GB, free: 1.125 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.646e-05/1.079, allocations: 8 kB / 0.6908 GB, free: 1.117 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002738/1.082, allocations: 0.6865 MB / 0.6914 GB, free: 440 kB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001959/1.084, allocations: 0.6978 MB / 0.6921 GB, free: 15.73 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002823/1.084, allocations: 87.98 kB / 0.6922 GB, free: 15.64 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008712/1.093, allocations: 6.652 MB / 0.6987 GB, free: 8.852 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.033e-06/1.093, allocations: 7.938 kB / 0.6987 GB, free: 8.844 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1925/1.285, allocations: 8.73 MB / 0.7072 GB, free: 149.6 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002612/1.288, allocations: 0.8777 MB / 0.7081 GB, free: 149.5 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007204/1.289, allocations: 74.58 kB / 0.7082 GB, free: 149.5 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001926/1.291, allocations: 185.6 kB / 0.7083 GB, free: 149.5 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005818/1.291, allocations: 264.1 kB / 0.7086 GB, free: 149.5 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002488/1.291, allocations: 122.7 kB / 0.7087 GB, free: 149.5 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003815/1.295, allocations: 2.417 MB / 0.7111 GB, free: 149.4 MB / 478.1 MB Notification: Performance of sort global known variables: time 3e-07/1.295, allocations: 1.281 kB / 0.7111 GB, free: 149.4 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.005257/1.301, allocations: 1.554 MB / 0.7126 GB, free: 149.4 MB / 478.1 MB 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.0129/1.313, allocations: 9.455 MB / 0.7218 GB, free: 145.9 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.0264/1.34, allocations: 12.86 MB / 0.7344 GB, free: 143.3 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 9.047e-06/1.34, allocations: 0 / 0.7344 GB, free: 143.3 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003666/1.344, allocations: 2.938 MB / 0.7372 GB, free: 142.2 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004139/1.348, allocations: 0.9615 MB / 0.7382 GB, free: 141.8 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09175/1.44, allocations: 64.8 MB / 0.8015 GB, free: 78.04 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008516/1.448, allocations: 5.971 MB / 0.8073 GB, free: 72.02 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.005756/1.454, allocations: 1.893 MB / 0.8091 GB, free: 70.12 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004638/1.459, allocations: 3.217 MB / 0.8123 GB, free: 66.9 MB / 478.1 MB Notification: Performance of SimCode: time 1.242e-06/1.459, allocations: 0 / 0.8123 GB, free: 66.9 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4131/1.872, allocations: 121.1 MB / 0.9306 GB, free: 137.2 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001764/1.872, allocations: 283.9 kB / 0.9309 GB, free: 136.8 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.357/6.229, allocations: 0 / 0.9309 GB, free: 136.8 MB / 494.1 MB (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