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/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|quadraticSpeedDependentTorqueQS.phi",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|quadraticSpeedDependentTorqueQS.phi",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001141/0.001141, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.255/1.255, allocations: 226.7 MB / 245.5 MB, free: 6.969 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009422/0.0009422, allocations: 93.78 kB / 296.7 MB, free: 6.477 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00109/0.00109, allocations: 47.92 kB / 356.6 MB, free: 10.56 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1848/0.1859, allocations: 50.44 MB / 407.1 MB, free: 27.79 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.01945/0.2054, allocations: 28.09 MB / 435.2 MB, free: 15.59 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.01507/0.2205, allocations: 8.42 MB / 443.6 MB, free: 7.148 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004898/0.2255, allocations: 203.4 kB / 443.8 MB, free: 6.949 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01602/0.2416, allocations: 7.714 MB / 451.5 MB, free: 15.22 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007774/0.2493, allocations: 2.539 MB / 454 MB, free: 12.67 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004606/0.254, allocations: 1.782 MB / 455.8 MB, free: 10.9 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.01085/0.2648, allocations: 10.07 MB / 465.9 MB, free: 0.7891 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02316/0.288, allocations: 17.81 MB / 483.7 MB, free: 14.84 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0057/0.2938, allocations: 4.708 MB / 488.4 MB, free: 10.11 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007553/0.3013, allocations: 5.796 MB / 494.2 MB, free: 4.297 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002608/0.304, allocations: 1.051 MB / 495.3 MB, free: 3.246 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00396/0.3079, allocations: 1.433 MB / 496.7 MB, free: 1.812 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002209/0.3102, allocations: 2.473 MB / 499.2 MB, free: 15.33 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.006122/0.3163, allocations: 5.325 MB / 0.4927 GB, free: 9.984 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.1894/0.5058, allocations: 20.19 MB / 0.5124 GB, free: 37.55 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.67e-06/0.5058, allocations: 0.8125 kB / 0.5124 GB, free: 37.55 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.683e-06/0.5058, allocations: 1.5 kB / 0.5124 GB, free: 37.55 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0005237/0.5063, allocations: 0.7812 kB / 0.5124 GB, free: 37.55 MB / 378.7 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.03449/0.5408, allocations: 11.91 MB / 0.524 GB, free: 32.58 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.156e-05/0.5409, allocations: 9.719 kB / 0.524 GB, free: 32.58 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02823/0.5691, allocations: 5.6 MB / 0.5295 GB, free: 30.41 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01258/0.5817, allocations: 6.123 MB / 0.5355 GB, free: 28.61 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004133/0.5822, allocations: 0.71 MB / 0.5362 GB, free: 28.29 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003075/0.5853, allocations: 0.923 MB / 0.5371 GB, free: 27.99 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02606/0.6113, allocations: 15.08 MB / 0.5518 GB, free: 15.45 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002095/0.6116, allocations: 15.8 kB / 0.5518 GB, free: 15.44 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001317/0.6129, allocations: 391 kB / 0.5522 GB, free: 15.06 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004143/0.6133, allocations: 0.5117 MB / 0.5527 GB, free: 14.55 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02377/0.6371, allocations: 13.73 MB / 0.5661 GB, free: 0.7969 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08147/0.7186, allocations: 48.05 MB / 0.613 GB, free: 376 kB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02183/0.7405, allocations: 28.57 MB / 0.6409 GB, free: 92 kB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005471/0.746, allocations: 3.076 MB / 0.6439 GB, free: 13.02 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006911/0.7467, allocations: 325.2 kB / 0.6442 GB, free: 12.65 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.739e-05/0.7468, allocations: 77.52 kB / 0.6443 GB, free: 12.57 MB / 474.7 MB Notification: Performance of pre-optimization done (n=384): time 7.474e-06/0.7468, allocations: 0 / 0.6443 GB, free: 12.57 MB / 474.7 MB Notification: Performance of matching and sorting (n=392): time 0.03244/0.7793, allocations: 14.72 MB / 0.6587 GB, free: 13.8 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.663e-05/0.7794, allocations: 92.67 kB / 0.6588 GB, free: 13.7 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006604/0.786, allocations: 3.598 MB / 0.6623 GB, free: 10.1 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004605/0.7865, allocations: 93.7 kB / 0.6624 GB, free: 10 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002549/0.7891, allocations: 4.039 MB / 0.6663 GB, free: 5.941 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001338/0.7904, allocations: 1.345 MB / 0.6676 GB, free: 4.605 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002224/0.7926, allocations: 1.16 MB / 0.6688 GB, free: 3.434 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 8.183e-05/0.7927, allocations: 301.1 kB / 0.669 GB, free: 3.137 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004025/0.7968, allocations: 2.588 MB / 0.6716 GB, free: 0.543 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005511/0.8023, allocations: 5.086 MB / 0.6765 GB, free: 10.32 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009845/0.8122, allocations: 8.333 MB / 0.6847 GB, free: 1.148 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.187e-05/0.8122, allocations: 24 kB / 0.6847 GB, free: 1.125 MB / 0.4948 GB Notification: Performance of matching and sorting (n=769) (initialization): time 0.197/1.009, allocations: 8.623 MB / 0.6931 GB, free: 186.5 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 8.735e-05/1.009, allocations: 43.12 kB / 0.6932 GB, free: 186.5 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000139/1.01, allocations: 87.78 kB / 0.6932 GB, free: 186.5 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002361/1.012, allocations: 0.8404 MB / 0.6941 GB, free: 186.4 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004518/1.016, allocations: 1.361 MB / 0.6954 GB, free: 186.3 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008769/1.025, allocations: 7.107 MB / 0.7023 GB, free: 182.4 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003886/1.029, allocations: 327.1 kB / 0.7026 GB, free: 182.3 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000627/1.03, allocations: 315.1 kB / 0.7029 GB, free: 182.3 MB / 0.4948 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.005028/1.035, allocations: 3.508 MB / 0.7064 GB, free: 180.6 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001061/1.036, allocations: 400.8 kB / 0.7068 GB, free: 180.6 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008611/1.045, allocations: 5.974 MB / 0.7126 GB, free: 178.2 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.117e-05/1.045, allocations: 45.25 kB / 0.7126 GB, free: 178.2 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.157e-05/1.045, allocations: 11.66 kB / 0.7126 GB, free: 178.2 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.809e-05/1.045, allocations: 22.97 kB / 0.7127 GB, free: 178.2 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01959/1.064, allocations: 15.25 MB / 0.7276 GB, free: 167.2 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.226e-05/1.064, allocations: 4 kB / 0.7276 GB, free: 167.2 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00241/1.067, allocations: 0.6959 MB / 0.7282 GB, free: 166.6 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00177/1.068, allocations: 0.6935 MB / 0.7289 GB, free: 166.1 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002101/1.069, allocations: 87.83 kB / 0.729 GB, free: 166 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006998/1.076, allocations: 6.154 MB / 0.735 GB, free: 160.6 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.39e-06/1.076, allocations: 11.94 kB / 0.735 GB, free: 160.5 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01713/1.093, allocations: 14.89 MB / 0.7496 GB, free: 145.5 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001751/1.095, allocations: 0.8824 MB / 0.7504 GB, free: 144.5 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004043/1.095, allocations: 75.94 kB / 0.7505 GB, free: 144.5 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001797/1.097, allocations: 191.9 kB / 0.7507 GB, free: 144.3 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005432/1.097, allocations: 262.7 kB / 0.7509 GB, free: 144 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002201/1.098, allocations: 116 kB / 0.751 GB, free: 143.9 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.003223/1.101, allocations: 2.415 MB / 0.7534 GB, free: 141.5 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1e-07/1.101, allocations: 0 / 0.7534 GB, free: 141.5 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.005095/1.106, allocations: 1.765 MB / 0.7551 GB, free: 139.8 MB / 0.4948 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.0005267/1.107, allocations: 276 kB / 0.7554 GB, free: 139.5 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.008766/1.115, allocations: 6.494 MB / 0.7617 GB, free: 133 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 8.146e-06/1.115, allocations: 4 kB / 0.7617 GB, free: 133 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.004086/1.119, allocations: 2.944 MB / 0.7646 GB, free: 130 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005545/1.125, allocations: 0.9062 MB / 0.7655 GB, free: 129.1 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03035/1.155, allocations: 21.99 MB / 0.787 GB, free: 107.1 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007883/1.163, allocations: 6.072 MB / 0.7929 GB, free: 100.9 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.005655/1.169, allocations: 1.885 MB / 0.7947 GB, free: 99.05 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001497/1.17, allocations: 343.4 kB / 0.7951 GB, free: 98.71 MB / 0.4948 GB Notification: Performance of SimCode: time 8.62e-07/1.171, allocations: 0 / 0.7951 GB, free: 98.71 MB / 0.4948 GB Notification: Performance of Templates: time 0.09213/1.263, allocations: 62.56 MB / 0.8562 GB, free: 36.5 MB / 0.4948 GB make -j1 -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.makefile (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 & ./Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_MTPA/SMPM_MTPA.csv","../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