Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001629/0.001629, allocations: 119.5 kB / 18.41 MB, free: 4.555 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001716/0.001716, allocations: 192.3 kB / 21.35 MB, free: 1.621 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.432/1.432, allocations: 222.9 MB / 247.1 MB, free: 4.207 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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: translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|quadraticSpeedDependentTorqueQS.phi",fileNamePrefix="Modelica_4.0.0_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=1000,variableFilter="time|quadraticSpeedDependentTorqueQS.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001565/0.001565, allocations: 43.92 kB / 358.7 MB, free: 8.285 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1034/0.105, allocations: 49.45 MB / 408.1 MB, free: 6.793 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.2466/0.3516, allocations: 28.57 MB / 436.7 MB, free: 5.004 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01824/0.3699, allocations: 8.398 MB / 445.1 MB, free: 4.551 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007517/0.3775, allocations: 212.8 kB / 445.3 MB, free: 4.512 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01772/0.3953, allocations: 8.156 MB / 453.5 MB, free: 2.891 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01008/0.4054, allocations: 2.786 MB / 456.3 MB, free: 1.758 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005872/0.4113, allocations: 1.862 MB / 458.1 MB, free: 1.242 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0168/0.4281, allocations: 9.963 MB / 468.1 MB, free: 11.67 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03396/0.4621, allocations: 21.36 MB / 489.4 MB, free: 10.36 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01088/0.473, allocations: 5.353 MB / 494.8 MB, free: 4.984 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01128/0.4843, allocations: 6.039 MB / 0.4891 GB, free: 14.93 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004767/0.4892, allocations: 1.543 MB / 0.4906 GB, free: 13.38 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006998/0.4962, allocations: 1.886 MB / 0.4924 GB, free: 11.5 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005445/0.5017, allocations: 2.989 MB / 0.4954 GB, free: 8.5 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01307/0.5148, allocations: 5.848 MB / 0.5011 GB, free: 2.629 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03105/0.5459, allocations: 20.67 MB / 0.5213 GB, free: 13.89 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.945e-06/0.5459, allocations: 0 / 0.5213 GB, free: 13.89 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.5459, allocations: 0 / 0.5213 GB, free: 13.89 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0005837/0.5465, allocations: 4 kB / 0.5213 GB, free: 13.89 MB / 430.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.04043/0.587, allocations: 12.05 MB / 0.533 GB, free: 1.734 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.85e-05/0.5871, allocations: 16.03 kB / 0.533 GB, free: 1.719 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03285/0.6199, allocations: 5.672 MB / 0.5386 GB, free: 12.04 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01466/0.6346, allocations: 6.322 MB / 0.5448 GB, free: 5.656 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009016/0.6356, allocations: 0.6985 MB / 0.5454 GB, free: 4.957 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004085/0.6397, allocations: 0.9296 MB / 0.5463 GB, free: 4.027 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04382/0.6835, allocations: 15.07 MB / 0.5611 GB, free: 4.875 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005579/0.6841, allocations: 11.95 kB / 0.5611 GB, free: 4.863 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003523/0.6877, allocations: 392 kB / 0.5615 GB, free: 4.48 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006936/0.6884, allocations: 0.5194 MB / 0.562 GB, free: 3.957 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03306/0.7215, allocations: 13.74 MB / 0.5754 GB, free: 6.191 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4835/1.205, allocations: 47.22 MB / 0.6215 GB, free: 126.6 MB / 0.4982 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0197/1.225, allocations: 28.59 MB / 0.6494 GB, free: 101.4 MB / 0.4982 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005254/1.23, allocations: 3.082 MB / 0.6524 GB, free: 101.3 MB / 0.4982 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005351/1.231, allocations: 248.5 kB / 0.6527 GB, free: 101.1 MB / 0.4982 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.483e-05/1.231, allocations: 77.45 kB / 0.6527 GB, free: 101.1 MB / 0.4982 GB Notification: Performance of pre-optimization done (n=384): time 6.692e-06/1.231, allocations: 0 / 0.6527 GB, free: 101.1 MB / 0.4982 GB Notification: Performance of matching and sorting (n=392): time 0.03354/1.264, allocations: 14.89 MB / 0.6673 GB, free: 99.45 MB / 0.4982 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.268e-05/1.264, allocations: 96.17 kB / 0.6674 GB, free: 99.38 MB / 0.4982 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006746/1.271, allocations: 3.6 MB / 0.6709 GB, free: 98.94 MB / 0.4982 GB Notification: Performance of collectPreVariables (initialization): time 0.000729/1.272, allocations: 93.05 kB / 0.671 GB, free: 98.86 MB / 0.4982 GB Notification: Performance of collectInitialEqns (initialization): time 0.002348/1.274, allocations: 4.18 MB / 0.6751 GB, free: 96.2 MB / 0.4982 GB Notification: Performance of collectInitialBindings (initialization): time 0.001535/1.276, allocations: 1.413 MB / 0.6764 GB, free: 95.11 MB / 0.4982 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00307/1.279, allocations: 1.161 MB / 0.6776 GB, free: 94.54 MB / 0.4982 GB Notification: Performance of setup shared object (initialization): time 4.812e-05/1.279, allocations: 301.1 kB / 0.6779 GB, free: 94.24 MB / 0.4982 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003947/1.283, allocations: 2.597 MB / 0.6804 GB, free: 93.27 MB / 0.4982 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005315/1.288, allocations: 5.081 MB / 0.6854 GB, free: 89.05 MB / 0.4982 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009434/1.298, allocations: 8.347 MB / 0.6935 GB, free: 82.99 MB / 0.4982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.23e-05/1.298, allocations: 25.25 kB / 0.6935 GB, free: 82.99 MB / 0.4982 GB Notification: Performance of matching and sorting (n=769) (initialization): time 0.01633/1.314, allocations: 8.663 MB / 0.702 GB, free: 78.4 MB / 0.4982 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001074/1.314, allocations: 42.19 kB / 0.702 GB, free: 78.4 MB / 0.4982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001369/1.315, allocations: 84.86 kB / 0.7021 GB, free: 78.4 MB / 0.4982 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002347/1.317, allocations: 0.8415 MB / 0.7029 GB, free: 78.05 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005016/1.322, allocations: 1.37 MB / 0.7043 GB, free: 77.39 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009619/1.332, allocations: 7.689 MB / 0.7118 GB, free: 69.57 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004441/1.336, allocations: 331.5 kB / 0.7121 GB, free: 69.24 MB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001168/1.337, allocations: 307.5 kB / 0.7124 GB, free: 68.95 MB / 0.4982 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.006365/1.344, allocations: 3.505 MB / 0.7158 GB, free: 65.43 MB / 0.4982 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001435/1.345, allocations: 433.2 kB / 0.7162 GB, free: 65 MB / 0.4982 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01039/1.356, allocations: 5.994 MB / 0.7221 GB, free: 58.98 MB / 0.4982 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.599e-05/1.356, allocations: 40 kB / 0.7221 GB, free: 58.94 MB / 0.4982 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.078e-05/1.356, allocations: 11.56 kB / 0.7221 GB, free: 58.93 MB / 0.4982 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.502e-05/1.356, allocations: 23.92 kB / 0.7221 GB, free: 58.91 MB / 0.4982 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02724/1.383, allocations: 14.95 MB / 0.7367 GB, free: 43.91 MB / 0.4982 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.296e-05/1.383, allocations: 4.625 kB / 0.7368 GB, free: 43.91 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002748/1.386, allocations: 0.6943 MB / 0.7374 GB, free: 43.21 MB / 0.4982 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001999/1.388, allocations: 0.7131 MB / 0.7381 GB, free: 42.5 MB / 0.4982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005844/1.388, allocations: 87.98 kB / 0.7382 GB, free: 42.41 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007775/1.396, allocations: 6.707 MB / 0.7448 GB, free: 35.57 MB / 0.4982 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.943e-06/1.396, allocations: 11.92 kB / 0.7448 GB, free: 35.56 MB / 0.4982 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01246/1.409, allocations: 8.78 MB / 0.7533 GB, free: 26.66 MB / 0.4982 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00213/1.411, allocations: 0.9042 MB / 0.7542 GB, free: 25.73 MB / 0.4982 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001035/1.412, allocations: 79.92 kB / 0.7543 GB, free: 25.66 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002386/1.414, allocations: 184.8 kB / 0.7545 GB, free: 25.48 MB / 0.4982 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005841/1.415, allocations: 266.7 kB / 0.7547 GB, free: 25.21 MB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003072/1.415, allocations: 112 kB / 0.7548 GB, free: 25.11 MB / 0.4982 GB Notification: Performance of sorting global known variables: time 0.00394/1.419, allocations: 2.415 MB / 0.7572 GB, free: 22.7 MB / 0.4982 GB Notification: Performance of sort global known variables: time 2.91e-07/1.419, allocations: 0 / 0.7572 GB, free: 22.7 MB / 0.4982 GB Notification: Performance of remove unused functions: time 0.0063/1.426, allocations: 1.547 MB / 0.7587 GB, free: 21.16 MB / 0.4982 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.0007592/1.426, allocations: 258.1 kB / 0.759 GB, free: 20.9 MB / 0.4982 GB Notification: Performance of simCode: created initialization part: time 0.009654/1.436, allocations: 6.55 MB / 0.7654 GB, free: 14.35 MB / 0.4982 GB Notification: Performance of simCode: created event and clocks part: time 8.616e-06/1.436, allocations: 0 / 0.7654 GB, free: 14.35 MB / 0.4982 GB Notification: Performance of simCode: created simulation system equations: time 0.004419/1.44, allocations: 2.952 MB / 0.7682 GB, free: 11.38 MB / 0.4982 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005755/1.446, allocations: 0.9553 MB / 0.7692 GB, free: 10.46 MB / 0.4982 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03018/1.476, allocations: 15.67 MB / 0.7845 GB, free: 10.67 MB / 0.5138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01032/1.487, allocations: 5.795 MB / 0.7901 GB, free: 4.828 MB / 0.5138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001893/1.489, allocations: 383.4 kB / 0.7905 GB, free: 4.453 MB / 0.5138 GB Notification: Performance of SimCode: time 1.062e-06/1.489, allocations: 0 / 0.7905 GB, free: 4.453 MB / 0.5138 GB Notification: Performance of Templates: time 0.3729/1.862, allocations: 151.5 MB / 0.9385 GB, free: 59.69 MB / 0.5294 GB " [Timeout remaining time 658] make -j1 -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.sim & ./Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA_res.mat","/var/lib/jenkins1/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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 16.23662811005488]