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.00136/0.00136, allocations: 109.1 kB / 21.18 MB, free: 0.7656 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.001494/0.001494, allocations: 213.7 kB / 24.5 MB, free: 4.148 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.438/1.438, allocations: 230.5 MB / 258.1 MB, free: 8 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.00214/0.00214, allocations: 63.91 kB / 379.1 MB, free: 2.543 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.278/0.2802, allocations: 53.4 MB / 432.5 MB, free: 6.758 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.03524/0.3154, allocations: 28.81 MB / 461.3 MB, free: 9.828 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01958/0.335, allocations: 8.532 MB / 469.8 MB, free: 1.266 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005879/0.3409, allocations: 254.7 kB / 470.1 MB, free: 1.016 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02016/0.361, allocations: 8.298 MB / 478.4 MB, free: 8.699 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01109/0.3721, allocations: 2.91 MB / 481.3 MB, free: 5.777 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006773/0.3789, allocations: 1.944 MB / 483.2 MB, free: 3.844 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01582/0.3947, allocations: 10.1 MB / 493.3 MB, free: 9.711 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03081/0.4255, allocations: 14.04 MB / 0.4955 GB, free: 11.53 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01123/0.4368, allocations: 5.482 MB / 0.5008 GB, free: 6.031 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01213/0.4489, allocations: 6.152 MB / 0.5068 GB, free: 15.86 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.006418/0.4553, allocations: 1.539 MB / 0.5083 GB, free: 14.32 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007443/0.4628, allocations: 1.933 MB / 0.5102 GB, free: 12.39 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006008/0.4688, allocations: 2.989 MB / 0.5131 GB, free: 9.391 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01329/0.4821, allocations: 5.844 MB / 0.5189 GB, free: 3.523 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.5514/1.033, allocations: 20.69 MB / 0.5391 GB, free: 37.92 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.197e-06/1.033, allocations: 0.5 kB / 0.5391 GB, free: 37.92 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.964e-06/1.033, allocations: 0 / 0.5391 GB, free: 37.92 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0006572/1.034, allocations: 0.5 kB / 0.5391 GB, free: 37.92 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.03949/1.074, allocations: 12.03 MB / 0.5508 GB, free: 34.6 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.286e-05/1.074, allocations: 9.219 kB / 0.5508 GB, free: 34.6 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03076/1.104, allocations: 5.589 MB / 0.5563 GB, free: 34.03 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01521/1.12, allocations: 6.383 MB / 0.5625 GB, free: 33.14 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007347/1.12, allocations: 0.714 MB / 0.5632 GB, free: 33.12 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004529/1.125, allocations: 0.9218 MB / 0.5641 GB, free: 33.11 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03772/1.163, allocations: 15.1 MB / 0.5788 GB, free: 25.02 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003508/1.163, allocations: 19.61 kB / 0.5789 GB, free: 25 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003185/1.166, allocations: 390.9 kB / 0.5792 GB, free: 24.63 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003907/1.167, allocations: 0.5155 MB / 0.5797 GB, free: 24.11 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02636/1.193, allocations: 13.78 MB / 0.5932 GB, free: 10.32 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08921/1.282, allocations: 46.55 MB / 0.6386 GB, free: 11.55 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01485/1.297, allocations: 8.065 MB / 0.6465 GB, free: 4.797 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005209/1.302, allocations: 2.794 MB / 0.6493 GB, free: 2.004 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004362/1.303, allocations: 114.5 kB / 0.6494 GB, free: 1.91 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.918e-05/1.303, allocations: 77.52 kB / 0.6494 GB, free: 1.824 MB / 494.1 MB Notification: Performance of pre-optimization done (n=384): time 6.042e-06/1.303, allocations: 4 kB / 0.6494 GB, free: 1.82 MB / 494.1 MB Notification: Performance of matching and sorting (n=392): time 0.03319/1.336, allocations: 14.75 MB / 0.6638 GB, free: 3.074 MB / 0.4982 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.418e-05/1.336, allocations: 97.95 kB / 0.6639 GB, free: 2.969 MB / 0.4982 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00637/1.342, allocations: 3.611 MB / 0.6675 GB, free: 15.36 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.0007901/1.343, allocations: 97.7 kB / 0.6676 GB, free: 15.26 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.003367/1.346, allocations: 4.184 MB / 0.6716 GB, free: 11.07 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.001873/1.348, allocations: 1.409 MB / 0.673 GB, free: 9.676 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001923/1.35, allocations: 1.172 MB / 0.6742 GB, free: 8.492 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 0.0001258/1.35, allocations: 301.1 kB / 0.6744 GB, free: 8.195 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0042/1.355, allocations: 2.602 MB / 0.677 GB, free: 5.59 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006551/1.361, allocations: 5.091 MB / 0.682 GB, free: 15.37 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01251/1.374, allocations: 8.353 MB / 0.6901 GB, free: 6.172 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.218e-05/1.374, allocations: 24 kB / 0.6901 GB, free: 6.148 MB / 0.5294 GB Notification: Performance of matching and sorting (n=769) (initialization): time 0.01694/1.391, allocations: 8.658 MB / 0.6986 GB, free: 13.98 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 7.968e-05/1.391, allocations: 40 kB / 0.6986 GB, free: 13.94 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001496/1.391, allocations: 84 kB / 0.6987 GB, free: 13.86 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002467/1.393, allocations: 0.8503 MB / 0.6995 GB, free: 13 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005321/1.399, allocations: 1.374 MB / 0.7009 GB, free: 11.73 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01194/1.411, allocations: 7.579 MB / 0.7083 GB, free: 4.086 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00443/1.415, allocations: 327.5 kB / 0.7086 GB, free: 3.766 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001015/1.416, allocations: 308 kB / 0.7089 GB, free: 3.465 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.006185/1.422, allocations: 3.519 MB / 0.7123 GB, free: 36 kB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001077/1.423, allocations: 425.3 kB / 0.7127 GB, free: 15.62 MB / 0.5607 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01073/1.434, allocations: 5.963 MB / 0.7186 GB, free: 9.645 MB / 0.5607 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.493e-05/1.434, allocations: 44 kB / 0.7186 GB, free: 9.602 MB / 0.5607 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.325e-05/1.434, allocations: 6.188 kB / 0.7186 GB, free: 9.598 MB / 0.5607 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.123e-05/1.434, allocations: 27.91 kB / 0.7186 GB, free: 9.57 MB / 0.5607 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02884/1.463, allocations: 14.97 MB / 0.7332 GB, free: 10.68 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.579e-05/1.463, allocations: 8.094 kB / 0.7333 GB, free: 10.67 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002738/1.466, allocations: 0.6999 MB / 0.7339 GB, free: 10.01 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00206/1.468, allocations: 0.7054 MB / 0.7346 GB, free: 9.301 MB / 0.5763 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002995/1.468, allocations: 87.97 kB / 0.7347 GB, free: 9.215 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009841/1.478, allocations: 6.617 MB / 0.7412 GB, free: 2.512 MB / 0.5763 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.424e-06/1.478, allocations: 8 kB / 0.7412 GB, free: 2.504 MB / 0.5763 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01475/1.493, allocations: 8.775 MB / 0.7498 GB, free: 9.641 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002955/1.496, allocations: 0.8485 MB / 0.7506 GB, free: 8.789 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008966/1.497, allocations: 83.89 kB / 0.7507 GB, free: 8.707 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002093/1.499, allocations: 183.6 kB / 0.7508 GB, free: 8.531 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005714/1.499, allocations: 282.2 kB / 0.7511 GB, free: 8.258 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002486/1.499, allocations: 122.6 kB / 0.7512 GB, free: 8.141 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.004087/1.504, allocations: 2.416 MB / 0.7536 GB, free: 5.738 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1e-07/1.504, allocations: 0 / 0.7536 GB, free: 5.738 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.006884/1.51, allocations: 1.551 MB / 0.7551 GB, free: 4.188 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.0008258/1.511, allocations: 261 kB / 0.7553 GB, free: 3.961 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.2714/1.783, allocations: 6.271 MB / 0.7615 GB, free: 233.2 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 1.228e-05/1.783, allocations: 2.688 kB / 0.7615 GB, free: 233.2 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.005563/1.788, allocations: 2.739 MB / 0.7641 GB, free: 233 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004928/1.793, allocations: 0.9671 MB / 0.7651 GB, free: 232.9 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02728/1.82, allocations: 15.76 MB / 0.7805 GB, free: 226.3 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005966/1.826, allocations: 5.8 MB / 0.7861 GB, free: 224.1 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001815/1.828, allocations: 402.2 kB / 0.7865 GB, free: 224.1 MB / 0.5919 GB Notification: Performance of SimCode: time 1.383e-06/1.828, allocations: 3.719 kB / 0.7865 GB, free: 224.1 MB / 0.5919 GB Notification: Performance of Templates: time 0.1667/1.995, allocations: 153.4 MB / 0.9363 GB, free: 73.16 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/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: 17.268747424008325]