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.001531/0.001531, allocations: 112.2 kB / 21.19 MB, free: 0.7578 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.001663/0.001663, allocations: 209.8 kB / 24.5 MB, free: 4.133 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.376/1.376, allocations: 230.6 MB / 258.3 MB, free: 8.023 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.001486/0.001486, allocations: 56.05 kB / 379.1 MB, free: 2.598 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2193/0.2208, allocations: 53.36 MB / 432.4 MB, free: 6.922 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.03333/0.2542, allocations: 28.8 MB / 461.2 MB, free: 9.996 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01795/0.2721, allocations: 8.54 MB / 469.8 MB, free: 1.426 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005223/0.2773, allocations: 258.7 kB / 470 MB, free: 1.172 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0194/0.2967, allocations: 8.302 MB / 478.3 MB, free: 8.852 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00934/0.3061, allocations: 2.92 MB / 481.2 MB, free: 5.922 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00616/0.3122, allocations: 1.923 MB / 483.2 MB, free: 4 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01441/0.3266, allocations: 10.11 MB / 493.3 MB, free: 9.859 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02261/0.3493, allocations: 14.04 MB / 0.4954 GB, free: 11.68 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007883/0.3571, allocations: 5.49 MB / 0.5008 GB, free: 6.176 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01016/0.3673, allocations: 6.144 MB / 0.5068 GB, free: 12 kB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003958/0.3713, allocations: 1.543 MB / 0.5083 GB, free: 14.46 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005722/0.377, allocations: 1.933 MB / 0.5102 GB, free: 12.54 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004271/0.3812, allocations: 2.993 MB / 0.5131 GB, free: 9.535 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009684/0.3909, allocations: 5.856 MB / 0.5188 GB, free: 3.656 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.4162/0.8071, allocations: 20.69 MB / 0.539 GB, free: 37.97 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.701e-06/0.8071, allocations: 0 / 0.539 GB, free: 37.97 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.8071, allocations: 0.625 kB / 0.539 GB, free: 37.97 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0004767/0.8076, allocations: 0 / 0.539 GB, free: 37.97 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.03163/0.8392, allocations: 12.01 MB / 0.5508 GB, free: 34.65 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.932e-05/0.8393, allocations: 8.562 kB / 0.5508 GB, free: 34.65 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0279/0.8671, allocations: 5.601 MB / 0.5562 GB, free: 34.08 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0141/0.8813, allocations: 6.378 MB / 0.5625 GB, free: 33.2 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007268/0.882, allocations: 0.7047 MB / 0.5632 GB, free: 33.18 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003377/0.8854, allocations: 0.9369 MB / 0.5641 GB, free: 33.16 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03226/0.9176, allocations: 15.09 MB / 0.5788 GB, free: 25.14 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004668/0.9181, allocations: 19.61 kB / 0.5788 GB, free: 25.12 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002738/0.9208, allocations: 387 kB / 0.5792 GB, free: 24.75 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004355/0.9213, allocations: 0.5194 MB / 0.5797 GB, free: 24.23 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02515/0.9464, allocations: 13.78 MB / 0.5932 GB, free: 10.44 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08584/1.032, allocations: 46.55 MB / 0.6386 GB, free: 11.68 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01497/1.047, allocations: 8.06 MB / 0.6465 GB, free: 4.922 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005328/1.053, allocations: 2.8 MB / 0.6492 GB, free: 2.125 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004734/1.053, allocations: 114.2 kB / 0.6493 GB, free: 2.031 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.137e-05/1.053, allocations: 73.33 kB / 0.6494 GB, free: 1.953 MB / 494.1 MB Notification: Performance of pre-optimization done (n=384): time 6.322e-06/1.053, allocations: 0 / 0.6494 GB, free: 1.953 MB / 494.1 MB Notification: Performance of matching and sorting (n=392): time 0.03367/1.087, allocations: 14.76 MB / 0.6638 GB, free: 3.203 MB / 0.4982 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.195e-05/1.087, allocations: 90.48 kB / 0.6639 GB, free: 3.102 MB / 0.4982 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006404/1.093, allocations: 3.615 MB / 0.6674 GB, free: 15.49 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.0004513/1.094, allocations: 89.7 kB / 0.6675 GB, free: 15.4 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.003332/1.097, allocations: 4.185 MB / 0.6716 GB, free: 11.2 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.001602/1.099, allocations: 1.407 MB / 0.673 GB, free: 9.812 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002187/1.101, allocations: 1.18 MB / 0.6741 GB, free: 8.621 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 0.0001232/1.101, allocations: 301.1 kB / 0.6744 GB, free: 8.324 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004299/1.105, allocations: 2.596 MB / 0.677 GB, free: 5.723 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006198/1.111, allocations: 5.09 MB / 0.6819 GB, free: 15.5 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01107/1.123, allocations: 8.351 MB / 0.6901 GB, free: 6.305 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.648e-05/1.123, allocations: 24 kB / 0.6901 GB, free: 6.281 MB / 0.5294 GB Notification: Performance of matching and sorting (n=769) (initialization): time 0.01506/1.138, allocations: 8.659 MB / 0.6986 GB, free: 14.12 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 8.067e-05/1.138, allocations: 40 kB / 0.6986 GB, free: 14.08 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001414/1.138, allocations: 84 kB / 0.6987 GB, free: 14 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002343/1.14, allocations: 0.8499 MB / 0.6995 GB, free: 13.14 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004807/1.145, allocations: 1.37 MB / 0.7008 GB, free: 11.87 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01181/1.157, allocations: 7.597 MB / 0.7083 GB, free: 4.211 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004276/1.161, allocations: 323.5 kB / 0.7086 GB, free: 3.895 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00111/1.162, allocations: 311.9 kB / 0.7089 GB, free: 3.59 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.006841/1.169, allocations: 3.512 MB / 0.7123 GB, free: 172 kB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001085/1.17, allocations: 425.3 kB / 0.7127 GB, free: 15.75 MB / 0.5607 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01081/1.181, allocations: 5.974 MB / 0.7185 GB, free: 9.77 MB / 0.5607 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.664e-05/1.181, allocations: 40 kB / 0.7186 GB, free: 9.73 MB / 0.5607 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.238e-05/1.181, allocations: 4 kB / 0.7186 GB, free: 9.727 MB / 0.5607 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.981e-05/1.181, allocations: 23.92 kB / 0.7186 GB, free: 9.703 MB / 0.5607 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02993/1.211, allocations: 14.97 MB / 0.7332 GB, free: 10.81 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.898e-05/1.211, allocations: 4 kB / 0.7332 GB, free: 10.81 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002836/1.214, allocations: 0.6957 MB / 0.7339 GB, free: 10.15 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002068/1.216, allocations: 0.7096 MB / 0.7346 GB, free: 9.441 MB / 0.5763 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003909/1.216, allocations: 91.97 kB / 0.7347 GB, free: 9.352 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009896/1.226, allocations: 6.619 MB / 0.7411 GB, free: 2.648 MB / 0.5763 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.506e-06/1.226, allocations: 11.94 kB / 0.7412 GB, free: 2.637 MB / 0.5763 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01462/1.241, allocations: 8.773 MB / 0.7497 GB, free: 9.773 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002673/1.243, allocations: 0.8485 MB / 0.7506 GB, free: 8.922 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006087/1.244, allocations: 79.89 kB / 0.7506 GB, free: 8.844 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001841/1.246, allocations: 183.9 kB / 0.7508 GB, free: 8.664 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000513/1.246, allocations: 278.3 kB / 0.7511 GB, free: 8.395 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002421/1.247, allocations: 123.6 kB / 0.7512 GB, free: 8.277 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.003737/1.25, allocations: 2.42 MB / 0.7536 GB, free: 5.871 MB / 0.5919 GB Notification: Performance of sort global known variables: time 8e-08/1.25, allocations: 0 / 0.7536 GB, free: 5.871 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.005121/1.256, allocations: 1.551 MB / 0.7551 GB, free: 4.32 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.0005497/1.256, allocations: 260.4 kB / 0.7553 GB, free: 4.094 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.2037/1.46, allocations: 6.276 MB / 0.7614 GB, free: 233.1 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 9.768e-06/1.46, allocations: 3.906 kB / 0.7614 GB, free: 233.1 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.004402/1.464, allocations: 2.733 MB / 0.7641 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.004337/1.469, allocations: 0.9729 MB / 0.7651 GB, free: 232.7 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02263/1.491, allocations: 15.75 MB / 0.7804 GB, free: 226.1 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004433/1.496, allocations: 5.795 MB / 0.7861 GB, free: 223.9 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001442/1.497, allocations: 408.2 kB / 0.7865 GB, free: 223.9 MB / 0.5919 GB Notification: Performance of SimCode: time 1.362e-06/1.497, allocations: 4 kB / 0.7865 GB, free: 223.9 MB / 0.5919 GB Notification: Performance of Templates: time 0.1367/1.634, allocations: 153.4 MB / 0.9363 GB, free: 73.33 MB / 0.5919 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: 15.744312250986695]