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.001454/0.001454, allocations: 121.4 kB / 18.5 MB, free: 4.52 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.001397/0.001397, allocations: 213.6 kB / 21.46 MB, free: 1.566 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.466/1.466, allocations: 230.2 MB / 254.5 MB, free: 15.25 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.001892/0.001892, allocations: 63.89 kB / 373.9 MB, free: 9.848 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1002/0.1021, allocations: 53.31 MB / 427.2 MB, free: 4.434 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.23/0.3321, allocations: 28.73 MB / 455.9 MB, free: 9.418 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02384/0.356, allocations: 8.515 MB / 464.4 MB, free: 3.34 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008075/0.364, allocations: 212.9 kB / 464.6 MB, free: 3.301 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0209/0.3849, allocations: 8.277 MB / 472.9 MB, free: 13.98 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01229/0.3972, allocations: 2.85 MB / 475.8 MB, free: 11.71 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006798/0.404, allocations: 1.888 MB / 477.7 MB, free: 10.22 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01636/0.4204, allocations: 10.02 MB / 487.7 MB, free: 4.043 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03339/0.4538, allocations: 16.33 MB / 0.4922 GB, free: 3.961 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01047/0.4642, allocations: 5.373 MB / 0.4974 GB, free: 14.57 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01111/0.4754, allocations: 6.132 MB / 0.5034 GB, free: 8.422 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004119/0.4795, allocations: 1.543 MB / 0.5049 GB, free: 6.879 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006237/0.4857, allocations: 1.914 MB / 0.5068 GB, free: 4.965 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004602/0.4903, allocations: 2.993 MB / 0.5097 GB, free: 1.965 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01056/0.5009, allocations: 5.848 MB / 0.5154 GB, free: 12.09 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03109/0.532, allocations: 20.69 MB / 0.5357 GB, free: 7.336 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.262e-06/0.532, allocations: 0 / 0.5357 GB, free: 7.336 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.635e-06/0.532, allocations: 4 kB / 0.5357 GB, free: 7.332 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0005867/0.5326, allocations: 0 / 0.5357 GB, free: 7.332 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.03667/0.5692, allocations: 12.09 MB / 0.5475 GB, free: 11.12 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.368e-05/0.5693, allocations: 8.031 kB / 0.5475 GB, free: 11.12 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03273/0.602, allocations: 5.597 MB / 0.5529 GB, free: 5.508 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01431/0.6163, allocations: 6.33 MB / 0.5591 GB, free: 15.12 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007074/0.617, allocations: 0.7102 MB / 0.5598 GB, free: 14.41 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002996/0.62, allocations: 0.9256 MB / 0.5607 GB, free: 13.49 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.035/0.655, allocations: 15.1 MB / 0.5755 GB, free: 14.31 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003592/0.6554, allocations: 19.89 kB / 0.5755 GB, free: 14.29 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002019/0.6574, allocations: 392 kB / 0.5759 GB, free: 13.91 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005575/0.658, allocations: 0.5194 MB / 0.5764 GB, free: 13.38 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02974/0.6877, allocations: 13.77 MB / 0.5898 GB, free: 15.59 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4599/1.148, allocations: 47.64 MB / 0.6363 GB, free: 127.9 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01748/1.165, allocations: 28.23 MB / 0.6639 GB, free: 102.7 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004573/1.17, allocations: 2.803 MB / 0.6666 GB, free: 102.6 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004399/1.17, allocations: 343.1 kB / 0.667 GB, free: 102.4 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.396e-05/1.17, allocations: 74.61 kB / 0.667 GB, free: 102.3 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=384): time 5.75e-06/1.17, allocations: 0 / 0.667 GB, free: 102.3 MB / 0.5138 GB Notification: Performance of matching and sorting (n=392): time 0.02747/1.198, allocations: 14.91 MB / 0.6816 GB, free: 97.58 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.813e-05/1.198, allocations: 91.42 kB / 0.6817 GB, free: 97.52 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004296/1.202, allocations: 3.606 MB / 0.6852 GB, free: 96.22 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.0002581/1.202, allocations: 92.92 kB / 0.6853 GB, free: 96.14 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.001817/1.204, allocations: 4.19 MB / 0.6894 GB, free: 93.48 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008711/1.205, allocations: 1.407 MB / 0.6908 GB, free: 92.39 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001387/1.206, allocations: 1.177 MB / 0.6919 GB, free: 91.82 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 3.567e-05/1.206, allocations: 308.9 kB / 0.6922 GB, free: 91.52 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003024/1.209, allocations: 2.596 MB / 0.6948 GB, free: 90.56 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003799/1.213, allocations: 5.084 MB / 0.6997 GB, free: 86.04 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007213/1.22, allocations: 8.352 MB / 0.7079 GB, free: 79.36 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.284e-05/1.22, allocations: 25.44 kB / 0.7079 GB, free: 79.36 MB / 0.5138 GB Notification: Performance of matching and sorting (n=769) (initialization): time 0.01163/1.232, allocations: 8.662 MB / 0.7164 GB, free: 74.77 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 5.298e-05/1.232, allocations: 45.28 kB / 0.7164 GB, free: 74.77 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.7e-05/1.232, allocations: 81.03 kB / 0.7165 GB, free: 74.77 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002118/1.234, allocations: 0.8447 MB / 0.7173 GB, free: 74.26 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004033/1.238, allocations: 1.375 MB / 0.7186 GB, free: 72.88 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008552/1.247, allocations: 7.681 MB / 0.7261 GB, free: 65.06 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003631/1.25, allocations: 327.5 kB / 0.7265 GB, free: 64.74 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003809/1.251, allocations: 315.6 kB / 0.7268 GB, free: 64.43 MB / 0.5138 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.004392/1.255, allocations: 3.505 MB / 0.7302 GB, free: 60.91 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008392/1.256, allocations: 437.2 kB / 0.7306 GB, free: 60.48 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008161/1.264, allocations: 5.96 MB / 0.7364 GB, free: 54.49 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.34e-05/1.264, allocations: 40 kB / 0.7365 GB, free: 54.45 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.148e-05/1.264, allocations: 8 kB / 0.7365 GB, free: 54.45 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.319e-05/1.264, allocations: 23.86 kB / 0.7365 GB, free: 54.42 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0192/1.284, allocations: 14.95 MB / 0.7511 GB, free: 39.42 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.322e-05/1.284, allocations: 7.984 kB / 0.7511 GB, free: 39.41 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002434/1.286, allocations: 0.6988 MB / 0.7518 GB, free: 38.71 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001729/1.288, allocations: 0.7093 MB / 0.7525 GB, free: 38 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001977/1.288, allocations: 87.97 kB / 0.7526 GB, free: 37.92 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007225/1.295, allocations: 6.718 MB / 0.7591 GB, free: 31.07 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.937e-06/1.295, allocations: 7.938 kB / 0.7591 GB, free: 31.07 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01066/1.306, allocations: 8.765 MB / 0.7677 GB, free: 22.17 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002032/1.308, allocations: 0.912 MB / 0.7686 GB, free: 21.24 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006486/1.308, allocations: 76 kB / 0.7686 GB, free: 21.16 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001789/1.31, allocations: 179.9 kB / 0.7688 GB, free: 20.99 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005166/1.311, allocations: 266.7 kB / 0.7691 GB, free: 20.73 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002163/1.311, allocations: 120 kB / 0.7692 GB, free: 20.61 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.003209/1.314, allocations: 2.42 MB / 0.7715 GB, free: 18.2 MB / 0.5138 GB Notification: Performance of sort global known variables: time 1.2e-07/1.314, allocations: 3.938 kB / 0.7716 GB, free: 18.2 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.005445/1.32, allocations: 1.551 MB / 0.7731 GB, free: 16.65 MB / 0.5138 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.0005855/1.32, allocations: 264.8 kB / 0.7733 GB, free: 16.39 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.009098/1.329, allocations: 6.29 MB / 0.7795 GB, free: 10.1 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 8.926e-06/1.329, allocations: 3.844 kB / 0.7795 GB, free: 10.1 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.003855/1.333, allocations: 2.733 MB / 0.7821 GB, free: 7.352 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004671/1.338, allocations: 0.9714 MB / 0.7831 GB, free: 6.422 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02666/1.365, allocations: 15.87 MB / 0.7986 GB, free: 6.434 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007266/1.372, allocations: 5.979 MB / 0.8044 GB, free: 412 kB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.005162/1.377, allocations: 1.881 MB / 0.8063 GB, free: 14.51 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001201/1.378, allocations: 359.3 kB / 0.8066 GB, free: 14.16 MB / 0.545 GB Notification: Performance of SimCode: time 8.12e-07/1.378, allocations: 0 / 0.8066 GB, free: 14.16 MB / 0.545 GB Notification: Performance of Templates: time 0.3174/1.696, allocations: 61.46 MB / 0.8666 GB, free: 175.1 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/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: 7.726802748627961]