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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00179/0.00179, allocations: 106.5 kB / 21.22 MB, free: 0.6797 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002271/0.002271, allocations: 209.3 kB / 24.54 MB, free: 4.055 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.464/1.464, allocations: 230.3 MB / 258 MB, free: 8.258 MB / 206.1 MB " [Timeout remaining time 178] 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: translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,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=1000,variableFilter="time|quadraticSpeedDependentTorqueQS.phi",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001915/0.001915, allocations: 67.89 kB / 378.8 MB, free: 2.742 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.234/0.2359, allocations: 53.37 MB / 432.2 MB, free: 7.078 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.034/0.2699, allocations: 28.81 MB / 461 MB, free: 10.14 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02242/0.2924, allocations: 8.536 MB / 469.5 MB, free: 1.578 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005268/0.2976, allocations: 250.8 kB / 469.8 MB, free: 1.332 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02101/0.3186, allocations: 8.304 MB / 478.1 MB, free: 9.008 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01065/0.3293, allocations: 2.909 MB / 481 MB, free: 6.09 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006392/0.3357, allocations: 1.938 MB / 482.9 MB, free: 4.156 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01529/0.351, allocations: 10.1 MB / 493 MB, free: 10.02 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03006/0.381, allocations: 13.18 MB / 0.4943 GB, free: 12.71 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01043/0.3915, allocations: 5.49 MB / 0.4997 GB, free: 7.215 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01165/0.4031, allocations: 6.148 MB / 0.5057 GB, free: 1.047 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005353/0.4085, allocations: 1.543 MB / 0.5072 GB, free: 15.5 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006638/0.4151, allocations: 1.933 MB / 0.5091 GB, free: 13.57 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005595/0.4207, allocations: 2.993 MB / 0.512 GB, free: 10.57 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01275/0.4334, allocations: 5.848 MB / 0.5177 GB, free: 4.699 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.4302/0.8637, allocations: 20.69 MB / 0.5379 GB, free: 37.06 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.57e-06/0.8637, allocations: 0.5312 kB / 0.5379 GB, free: 37.06 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.013e-06/0.8637, allocations: 0.5312 kB / 0.5379 GB, free: 37.06 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0004997/0.8642, allocations: 0 / 0.5379 GB, free: 37.06 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.03434/0.8985, allocations: 12.02 MB / 0.5497 GB, free: 33.74 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.983e-05/0.8986, allocations: 9.562 kB / 0.5497 GB, free: 33.74 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0306/0.9292, allocations: 5.592 MB / 0.5551 GB, free: 33.17 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01348/0.9426, allocations: 6.382 MB / 0.5614 GB, free: 32.29 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006445/0.9433, allocations: 0.7056 MB / 0.562 GB, free: 32.26 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003498/0.9468, allocations: 0.9243 MB / 0.5629 GB, free: 32.25 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03279/0.9796, allocations: 15.1 MB / 0.5777 GB, free: 25.32 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004192/0.98, allocations: 11.95 kB / 0.5777 GB, free: 25.31 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002556/0.9825, allocations: 393 kB / 0.5781 GB, free: 24.94 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003966/0.9829, allocations: 0.5155 MB / 0.5786 GB, free: 24.42 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02482/1.008, allocations: 13.78 MB / 0.592 GB, free: 10.62 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08498/1.093, allocations: 46.55 MB / 0.6375 GB, free: 11.87 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01576/1.109, allocations: 8.068 MB / 0.6454 GB, free: 5.105 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004925/1.113, allocations: 2.801 MB / 0.6481 GB, free: 2.309 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003669/1.114, allocations: 116.6 kB / 0.6482 GB, free: 2.211 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.551e-05/1.114, allocations: 73.33 kB / 0.6483 GB, free: 2.133 MB / 494.1 MB Notification: Performance of pre-optimization done (n=384): time 6.723e-06/1.114, allocations: 6.406 kB / 0.6483 GB, free: 2.129 MB / 494.1 MB Notification: Performance of matching and sorting (n=392): time 0.03474/1.149, allocations: 14.75 MB / 0.6627 GB, free: 3.379 MB / 0.4982 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.538e-05/1.149, allocations: 90.48 kB / 0.6628 GB, free: 3.277 MB / 0.4982 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006935/1.156, allocations: 3.615 MB / 0.6663 GB, free: 15.67 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.0006619/1.156, allocations: 89.7 kB / 0.6664 GB, free: 15.57 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.003572/1.16, allocations: 4.191 MB / 0.6705 GB, free: 11.38 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.001812/1.162, allocations: 1.404 MB / 0.6719 GB, free: 9.988 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002617/1.164, allocations: 1.172 MB / 0.673 GB, free: 8.805 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 0.0001294/1.164, allocations: 301.1 kB / 0.6733 GB, free: 8.508 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004634/1.169, allocations: 2.6 MB / 0.6758 GB, free: 5.902 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006809/1.176, allocations: 5.089 MB / 0.6808 GB, free: 15.68 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01223/1.188, allocations: 8.353 MB / 0.689 GB, free: 6.484 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.287e-05/1.188, allocations: 24 kB / 0.689 GB, free: 6.461 MB / 0.5294 GB Notification: Performance of matching and sorting (n=769) (initialization): time 0.01651/1.205, allocations: 8.657 MB / 0.6974 GB, free: 14.3 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 9.924e-05/1.205, allocations: 43.94 kB / 0.6975 GB, free: 14.25 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001595/1.205, allocations: 80 kB / 0.6976 GB, free: 14.18 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002678/1.208, allocations: 0.8542 MB / 0.6984 GB, free: 13.32 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005228/1.213, allocations: 1.365 MB / 0.6997 GB, free: 12.05 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0129/1.226, allocations: 7.595 MB / 0.7071 GB, free: 4.395 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004499/1.23, allocations: 323.5 kB / 0.7075 GB, free: 4.078 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001056/1.231, allocations: 311.9 kB / 0.7077 GB, free: 3.773 MB / 0.545 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.006971/1.238, allocations: 3.514 MB / 0.7112 GB, free: 356 kB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001328/1.24, allocations: 425.3 kB / 0.7116 GB, free: 15.93 MB / 0.5607 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01288/1.252, allocations: 5.963 MB / 0.7174 GB, free: 9.957 MB / 0.5607 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.099e-05/1.253, allocations: 44 kB / 0.7175 GB, free: 9.914 MB / 0.5607 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.896e-05/1.253, allocations: 8 kB / 0.7175 GB, free: 9.906 MB / 0.5607 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.33e-05/1.253, allocations: 19.92 kB / 0.7175 GB, free: 9.887 MB / 0.5607 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03328/1.286, allocations: 14.96 MB / 0.7321 GB, free: 10.99 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.869e-05/1.286, allocations: 8.094 kB / 0.7321 GB, free: 10.98 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003128/1.289, allocations: 0.6956 MB / 0.7328 GB, free: 10.33 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002317/1.291, allocations: 0.7093 MB / 0.7335 GB, free: 9.617 MB / 0.5763 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005088/1.292, allocations: 91.97 kB / 0.7336 GB, free: 9.527 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01071/1.303, allocations: 6.616 MB / 0.74 GB, free: 2.828 MB / 0.5763 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.479e-05/1.303, allocations: 7.938 kB / 0.74 GB, free: 2.82 MB / 0.5763 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01573/1.318, allocations: 8.778 MB / 0.7486 GB, free: 9.953 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002673/1.321, allocations: 0.8524 MB / 0.7494 GB, free: 9.098 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009054/1.322, allocations: 79.89 kB / 0.7495 GB, free: 9.02 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002336/1.324, allocations: 179.8 kB / 0.7497 GB, free: 8.844 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005865/1.325, allocations: 290 kB / 0.75 GB, free: 8.566 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002881/1.325, allocations: 120 kB / 0.7501 GB, free: 8.449 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.00461/1.33, allocations: 2.412 MB / 0.7524 GB, free: 6.051 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1e-07/1.33, allocations: 0 / 0.7524 GB, free: 6.051 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.006103/1.336, allocations: 1.551 MB / 0.7539 GB, free: 4.5 MB / 0.5919 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.0006742/1.336, allocations: 266.8 kB / 0.7542 GB, free: 4.273 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.2171/1.554, allocations: 6.271 MB / 0.7603 GB, free: 233.1 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 8.365e-06/1.554, allocations: 2.281 kB / 0.7603 GB, free: 233.1 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.004716/1.558, allocations: 2.744 MB / 0.763 GB, free: 232.8 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004782/1.563, allocations: 0.966 MB / 0.7639 GB, free: 232.7 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02393/1.587, allocations: 16.02 MB / 0.7796 GB, free: 226 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005585/1.593, allocations: 5.972 MB / 0.7854 GB, free: 223.8 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.004266/1.597, allocations: 1.888 MB / 0.7873 GB, free: 223.5 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00101/1.598, allocations: 357.8 kB / 0.7876 GB, free: 223.1 MB / 0.5919 GB Notification: Performance of SimCode: time 8.91e-07/1.598, allocations: 0 / 0.7876 GB, free: 223.1 MB / 0.5919 GB Notification: Performance of Templates: time 0.09546/1.693, allocations: 65.78 MB / 0.8518 GB, free: 159 MB / 0.5919 GB " [Timeout remaining time 658] make -j1 -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.makefile [Timeout 660] (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) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_MTPA/SMPM_MTPA.csv","/var/lib/jenkins/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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.08935049828142]