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.001909/0.001909, allocations: 103.6 kB / 21.19 MB, free: 0.5234 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.00232/0.00232, allocations: 214.5 kB / 24.48 MB, free: 3.836 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.54/1.54, allocations: 230.5 MB / 258.1 MB, free: 7.809 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.002628/0.002628, allocations: 59.91 kB / 379 MB, free: 2.293 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3151/0.3178, allocations: 53.41 MB / 432.4 MB, free: 6.535 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.03052/0.3483, allocations: 24.63 MB / 457.1 MB, free: 13.8 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01872/0.367, allocations: 8.174 MB / 465.2 MB, free: 5.602 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006255/0.3733, allocations: 258.7 kB / 465.5 MB, free: 5.348 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01952/0.3928, allocations: 7.629 MB / 473.1 MB, free: 13.7 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01102/0.4038, allocations: 2.824 MB / 475.9 MB, free: 10.86 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00662/0.4104, allocations: 1.851 MB / 477.8 MB, free: 9.02 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01512/0.4255, allocations: 10.1 MB / 487.9 MB, free: 14.89 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02649/0.452, allocations: 13.87 MB / 0.49 GB, free: 0.8867 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01/0.462, allocations: 5.502 MB / 0.4954 GB, free: 11.37 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01084/0.4729, allocations: 5.859 MB / 0.5011 GB, free: 5.492 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004831/0.4777, allocations: 1.539 MB / 0.5026 GB, free: 3.953 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007011/0.4847, allocations: 1.898 MB / 0.5045 GB, free: 2.055 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005167/0.4899, allocations: 2.996 MB / 0.5074 GB, free: 15.05 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009934/0.4998, allocations: 4.545 MB / 0.5118 GB, free: 10.49 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02699/0.5268, allocations: 20.77 MB / 0.5321 GB, free: 5.648 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.412e-06/0.5268, allocations: 4 kB / 0.5321 GB, free: 5.645 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.794e-06/0.5268, allocations: 0 / 0.5321 GB, free: 5.645 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0005738/0.5274, allocations: 0 / 0.5321 GB, free: 5.645 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.2678/0.7952, allocations: 12 MB / 0.5438 GB, free: 90.74 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.398e-05/0.7953, allocations: 11.88 kB / 0.5438 GB, free: 90.74 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02961/0.8249, allocations: 5.605 MB / 0.5493 GB, free: 87.28 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01441/0.8393, allocations: 6.379 MB / 0.5555 GB, free: 81.28 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007494/0.84, allocations: 0.7023 MB / 0.5562 GB, free: 80.58 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003891/0.8439, allocations: 0.9292 MB / 0.5571 GB, free: 79.66 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03757/0.8815, allocations: 15.25 MB / 0.572 GB, free: 64.33 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006493/0.8822, allocations: 15.91 kB / 0.572 GB, free: 64.31 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003587/0.8857, allocations: 395.6 kB / 0.5724 GB, free: 63.93 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004873/0.8862, allocations: 0.5194 MB / 0.5729 GB, free: 63.41 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02886/0.9151, allocations: 13.72 MB / 0.5863 GB, free: 49.67 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07417/0.9893, allocations: 41.32 MB / 0.6267 GB, free: 7.98 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01257/1.002, allocations: 7.987 MB / 0.6345 GB, free: 1.242 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005215/1.007, allocations: 2.794 MB / 0.6372 GB, free: 14.45 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004046/1.007, allocations: 94.94 kB / 0.6373 GB, free: 14.35 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.122e-05/1.008, allocations: 73.52 kB / 0.6374 GB, free: 14.27 MB / 462.1 MB Notification: Performance of pre-optimization done (n=384): time 7.353e-06/1.008, allocations: 0 / 0.6374 GB, free: 14.27 MB / 462.1 MB Notification: Performance of matching and sorting (n=392): time 0.03199/1.04, allocations: 14.69 MB / 0.6517 GB, free: 15.64 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.158e-05/1.04, allocations: 90.48 kB / 0.6518 GB, free: 15.54 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006381/1.046, allocations: 3.555 MB / 0.6553 GB, free: 11.98 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007586/1.047, allocations: 89.7 kB / 0.6553 GB, free: 11.88 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003284/1.05, allocations: 4.187 MB / 0.6594 GB, free: 7.66 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001936/1.052, allocations: 1.406 MB / 0.6608 GB, free: 6.242 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002148/1.054, allocations: 1.172 MB / 0.662 GB, free: 5.059 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001337/1.054, allocations: 317 kB / 0.6623 GB, free: 4.746 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004615/1.059, allocations: 2.588 MB / 0.6648 GB, free: 2.152 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007027/1.066, allocations: 5.108 MB / 0.6698 GB, free: 11.86 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01189/1.078, allocations: 8.352 MB / 0.6779 GB, free: 2.324 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.524e-05/1.078, allocations: 24 kB / 0.678 GB, free: 2.301 MB / 494.1 MB Notification: Performance of matching and sorting (n=769) (initialization): time 0.01884/1.097, allocations: 8.622 MB / 0.6864 GB, free: 9.648 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001405/1.097, allocations: 44 kB / 0.6864 GB, free: 9.605 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002005/1.097, allocations: 84 kB / 0.6865 GB, free: 9.523 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002576/1.1, allocations: 0.834 MB / 0.6873 GB, free: 8.688 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005284/1.105, allocations: 1.373 MB / 0.6886 GB, free: 7.312 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01234/1.117, allocations: 7.352 MB / 0.6958 GB, free: 15.84 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004868/1.122, allocations: 327.5 kB / 0.6961 GB, free: 15.52 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001409/1.124, allocations: 311.9 kB / 0.6964 GB, free: 15.21 MB / 0.5137 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.008216/1.132, allocations: 3.509 MB / 0.6999 GB, free: 11.7 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001577/1.133, allocations: 417.4 kB / 0.7003 GB, free: 11.29 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01368/1.147, allocations: 5.949 MB / 0.7061 GB, free: 5.293 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.195e-05/1.147, allocations: 40 kB / 0.7061 GB, free: 5.254 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.103e-05/1.147, allocations: 8 kB / 0.7061 GB, free: 5.246 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.832e-05/1.147, allocations: 19.92 kB / 0.7061 GB, free: 5.227 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02986/1.177, allocations: 13.02 MB / 0.7189 GB, free: 8.066 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.838e-05/1.177, allocations: 4 kB / 0.7189 GB, free: 8.062 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003044/1.18, allocations: 0.6982 MB / 0.7195 GB, free: 7.363 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00204/1.182, allocations: 0.6863 MB / 0.7202 GB, free: 6.676 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00035/1.182, allocations: 95.91 kB / 0.7203 GB, free: 6.582 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009606/1.192, allocations: 6.4 MB / 0.7265 GB, free: 80 kB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.047e-06/1.192, allocations: 11.94 kB / 0.7266 GB, free: 68 kB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01757/1.21, allocations: 8.741 MB / 0.7351 GB, free: 7.199 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003205/1.213, allocations: 0.829 MB / 0.7359 GB, free: 6.367 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001283/1.214, allocations: 75.98 kB / 0.736 GB, free: 6.293 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0027/1.217, allocations: 175.8 kB / 0.7361 GB, free: 6.121 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007849/1.218, allocations: 286.5 kB / 0.7364 GB, free: 5.84 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004602/1.218, allocations: 120 kB / 0.7365 GB, free: 5.723 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.005031/1.223, allocations: 2.283 MB / 0.7388 GB, free: 3.449 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.2e-07/1.223, allocations: 0 / 0.7388 GB, free: 3.449 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.007286/1.23, allocations: 1.547 MB / 0.7403 GB, free: 1.902 MB / 0.545 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.001002/1.231, allocations: 259.2 kB / 0.7405 GB, free: 1.637 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01259/1.244, allocations: 6.273 MB / 0.7466 GB, free: 11.36 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.461e-05/1.244, allocations: 4 kB / 0.7466 GB, free: 11.35 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.005657/1.25, allocations: 2.729 MB / 0.7493 GB, free: 8.613 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006153/1.256, allocations: 0.8893 MB / 0.7502 GB, free: 7.75 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4553/1.711, allocations: 15.74 MB / 0.7656 GB, free: 195.9 MB / 0.5607 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006357/1.717, allocations: 5.346 MB / 0.7708 GB, free: 195.4 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001536/1.719, allocations: 398.2 kB / 0.7712 GB, free: 195.4 MB / 0.5607 GB Notification: Performance of SimCode: time 1.794e-06/1.719, allocations: 0 / 0.7712 GB, free: 195.4 MB / 0.5607 GB Notification: Performance of Templates: time 0.175/1.894, allocations: 155.2 MB / 0.9227 GB, free: 48.8 MB / 0.5607 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/jenkins1/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/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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 16.39374717930332]