Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001573/0.001573, allocations: 107.6 kB / 21.19 MB, free: 0.6484 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001655/0.001655, allocations: 213.1 kB / 24.48 MB, free: 3.957 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.43/1.43, allocations: 230.6 MB / 258.2 MB, free: 7.777 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001523/0.001523, allocations: 47.92 kB / 379 MB, free: 2.402 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2539/0.2554, allocations: 53.36 MB / 432.4 MB, free: 6.664 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.03008/0.2855, allocations: 24.63 MB / 457 MB, free: 13.93 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01817/0.3036, allocations: 8.174 MB / 465.2 MB, free: 5.73 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00592/0.3096, allocations: 254.7 kB / 465.4 MB, free: 5.48 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01941/0.329, allocations: 7.633 MB / 473.1 MB, free: 13.83 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01012/0.3391, allocations: 2.859 MB / 475.9 MB, free: 10.96 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006524/0.3456, allocations: 1.85 MB / 477.8 MB, free: 9.113 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01472/0.3603, allocations: 10.11 MB / 487.9 MB, free: 14.98 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0246/0.3849, allocations: 14.04 MB / 0.4901 GB, free: 0.8008 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009766/0.3947, allocations: 5.513 MB / 0.4955 GB, free: 11.27 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.011/0.4057, allocations: 6.14 MB / 0.5015 GB, free: 5.113 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004391/0.4101, allocations: 1.543 MB / 0.503 GB, free: 3.57 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006175/0.4163, allocations: 1.914 MB / 0.5049 GB, free: 1.656 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005227/0.4215, allocations: 2.985 MB / 0.5078 GB, free: 14.66 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009612/0.4311, allocations: 4.541 MB / 0.5123 GB, free: 10.11 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02621/0.4573, allocations: 20.77 MB / 0.5325 GB, free: 5.266 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.083e-06/0.4573, allocations: 0 / 0.5325 GB, free: 5.266 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.4573, allocations: 0 / 0.5325 GB, free: 5.266 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0005212/0.4579, allocations: 0 / 0.5325 GB, free: 5.266 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.2751/0.7329, allocations: 12.01 MB / 0.5443 GB, free: 91.12 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.944e-05/0.733, allocations: 11.75 kB / 0.5443 GB, free: 91.12 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02961/0.7626, allocations: 5.601 MB / 0.5498 GB, free: 87.14 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01423/0.7768, allocations: 6.377 MB / 0.556 GB, free: 81.14 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006765/0.7775, allocations: 0.7067 MB / 0.5567 GB, free: 80.44 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003793/0.7813, allocations: 0.9213 MB / 0.5576 GB, free: 79.53 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03729/0.8186, allocations: 15.25 MB / 0.5725 GB, free: 64.19 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004899/0.819, allocations: 19.89 kB / 0.5725 GB, free: 64.17 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003376/0.8224, allocations: 398.2 kB / 0.5729 GB, free: 63.79 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004322/0.8229, allocations: 0.5116 MB / 0.5734 GB, free: 63.28 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0242/0.847, allocations: 13.72 MB / 0.5868 GB, free: 49.54 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06765/0.9147, allocations: 41.33 MB / 0.6271 GB, free: 7.836 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01188/0.9266, allocations: 7.973 MB / 0.6349 GB, free: 1.105 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004525/0.9311, allocations: 2.798 MB / 0.6376 GB, free: 14.31 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003651/0.9315, allocations: 96.23 kB / 0.6377 GB, free: 14.21 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.939e-05/0.9315, allocations: 73.58 kB / 0.6378 GB, free: 14.13 MB / 462.1 MB Notification: Performance of pre-optimization done (n=384): time 6.803e-06/0.9316, allocations: 4 kB / 0.6378 GB, free: 14.13 MB / 462.1 MB Notification: Performance of matching and sorting (n=392): time 0.03276/0.9643, allocations: 14.68 MB / 0.6521 GB, free: 15.5 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.018e-05/0.9644, allocations: 90.48 kB / 0.6522 GB, free: 15.39 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005737/0.9701, allocations: 3.559 MB / 0.6557 GB, free: 11.83 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007219/0.9709, allocations: 85.7 kB / 0.6558 GB, free: 11.74 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003289/0.9742, allocations: 4.187 MB / 0.6599 GB, free: 7.52 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00184/0.976, allocations: 1.41 MB / 0.6613 GB, free: 6.098 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001991/0.978, allocations: 1.18 MB / 0.6624 GB, free: 4.906 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001362/0.9781, allocations: 309.1 kB / 0.6627 GB, free: 4.602 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004341/0.9825, allocations: 2.592 MB / 0.6652 GB, free: 2.004 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007192/0.9897, allocations: 5.112 MB / 0.6702 GB, free: 11.71 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0127/1.002, allocations: 8.34 MB / 0.6784 GB, free: 2.184 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001054/1.002, allocations: 24 kB / 0.6784 GB, free: 2.16 MB / 494.1 MB Notification: Performance of matching and sorting (n=769) (initialization): time 0.01772/1.02, allocations: 8.63 MB / 0.6868 GB, free: 9.5 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 8.672e-05/1.02, allocations: 43.94 kB / 0.6869 GB, free: 9.457 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000168/1.02, allocations: 80 kB / 0.6869 GB, free: 9.379 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002484/1.023, allocations: 0.8384 MB / 0.6878 GB, free: 8.539 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005461/1.028, allocations: 1.373 MB / 0.6891 GB, free: 7.164 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01172/1.04, allocations: 7.344 MB / 0.6963 GB, free: 15.7 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004502/1.045, allocations: 327.5 kB / 0.6966 GB, free: 15.38 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001086/1.046, allocations: 308 kB / 0.6969 GB, free: 15.07 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.007966/1.054, allocations: 3.513 MB / 0.7003 GB, free: 11.55 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001497/1.055, allocations: 413.4 kB / 0.7007 GB, free: 11.14 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01166/1.067, allocations: 5.95 MB / 0.7065 GB, free: 5.148 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.019e-05/1.067, allocations: 40 kB / 0.7065 GB, free: 5.109 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.538e-05/1.067, allocations: 8 kB / 0.7066 GB, free: 5.102 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.805e-05/1.067, allocations: 23.92 kB / 0.7066 GB, free: 5.078 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02769/1.095, allocations: 13.01 MB / 0.7193 GB, free: 7.922 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.978e-05/1.095, allocations: 4 kB / 0.7193 GB, free: 7.918 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003258/1.098, allocations: 0.691 MB / 0.72 GB, free: 7.227 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002159/1.1, allocations: 0.6936 MB / 0.7206 GB, free: 6.531 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005877/1.101, allocations: 95.91 kB / 0.7207 GB, free: 6.438 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009679/1.11, allocations: 6.392 MB / 0.727 GB, free: 15.94 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.257e-06/1.11, allocations: 7.938 kB / 0.727 GB, free: 15.93 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01525/1.126, allocations: 8.748 MB / 0.7355 GB, free: 7.062 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003035/1.129, allocations: 0.829 MB / 0.7363 GB, free: 6.23 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009634/1.13, allocations: 83.92 kB / 0.7364 GB, free: 6.148 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002227/1.132, allocations: 179.9 kB / 0.7366 GB, free: 5.973 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005476/1.132, allocations: 282.4 kB / 0.7369 GB, free: 5.695 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000257/1.133, allocations: 120 kB / 0.737 GB, free: 5.578 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.003978/1.137, allocations: 2.283 MB / 0.7392 GB, free: 3.305 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.2e-07/1.137, allocations: 4 kB / 0.7392 GB, free: 3.301 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.006656/1.143, allocations: 1.539 MB / 0.7407 GB, free: 1.762 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.0009692/1.144, allocations: 263.2 kB / 0.741 GB, free: 1.492 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01214/1.156, allocations: 6.269 MB / 0.7471 GB, free: 11.21 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.534e-05/1.156, allocations: 4 kB / 0.7471 GB, free: 11.21 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.005689/1.162, allocations: 2.725 MB / 0.7497 GB, free: 8.477 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005296/1.167, allocations: 0.902 MB / 0.7506 GB, free: 7.602 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.425/1.592, allocations: 15.73 MB / 0.766 GB, free: 196 MB / 0.5607 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005892/1.598, allocations: 5.343 MB / 0.7712 GB, free: 195.6 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001467/1.6, allocations: 400.4 kB / 0.7716 GB, free: 195.6 MB / 0.5607 GB Notification: Performance of SimCode: time 2.074e-06/1.6, allocations: 0 / 0.7716 GB, free: 195.6 MB / 0.5607 GB Notification: Performance of Templates: time 0.1432/1.743, allocations: 155.2 MB / 0.9232 GB, free: 48.82 MB / 0.5607 GB " [Timeout remaining time 658] make -j1 -f Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.sim & ./Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_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_4.1.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.358597211015876]